Skip to content

Commit

Permalink
Add FunctionCall check to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd authored Jan 8, 2025
1 parent 308d059 commit a960dbc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/check-statements-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,25 @@ It ensures that the answer is not empty.
### CHECK NotEmpty
```
This statement checks if the output is empty.

## CHECK FunctionCall
It ensures that a function call happens during answer generation.

``````md
### CHECK FunctionCall
```json
{
"function_name": "GetCurrentTime"
}
```
``````

This statement checks if `GetCurrentTime` function has been called during the answer generation.
Also, the following syntax can be used as a sugar syntactic.

```md
### CHECK FunctionCall
GetCurrentTime
```


0 comments on commit a960dbc

Please sign in to comment.