# Annotation

### 'check' Decorator

The check decorator is used to check the parameters during function calls. If the parameters do not match the type during the call, an exception is thrown. Using the check decorator can enhance script checking and avoid errors caused by illegal parameter types during script execution. The exclude parameter means that you will exclude the checks for these parameters. Note: Any type will automatically exclude checks.

```python
import crawlipt as cpt

@cpt.check(exclude=["a","b"])
def A(a:str,b:int,c:float):
    pass
```

### 'alias' Decorator

The alias decorator can add an alias to the action and condition methods you add, and the script can map to the function through the alias. Replacement rule: If alias is not set, method name mapping will be performed directly. If the method name already exists, it will not be overwritten and the addition will fail; After setting alias, map both method name and alias name. If both method name and alias exist, the method name will not be overwritten, and alias will be overwritten. Try to avoid duplicate names as much as possible.

```python
import crawlipt as cpt

@cpt.alias(name="B")
def A(a:str,b:int,c:float):
    pass
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wwydev.gitbook.io/crawlipt/zhi-nan/annotation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
