Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mehrandvd/skunit
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd committed Jan 13, 2025
2 parents 044961b + 456e140 commit 04ce090
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docs/check-statements-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,30 @@ It ensures that a function call happens during answer generation.
### CHECK FunctionCall
```json
{
"function_name": "GetCurrentTime"
"function_name": "GetFoodMenu"
}
```
``````

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

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

Also you can us some more advanced assertions by checking the called arguments:

``````md
### CHECK FunctionCall
```json
{
"function_name": "GetFoodMenu",
"arguments": {
"mood": "Happy"
}
}
```


0 comments on commit 04ce090

Please sign in to comment.