From 456e140780fb847c6d073afb987fcc4d46512fa2 Mon Sep 17 00:00:00 2001 From: Mehran Davoudi Date: Mon, 13 Jan 2025 17:10:00 +0330 Subject: [PATCH] Update check-statements-spec.md --- docs/check-statements-spec.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/check-statements-spec.md b/docs/check-statements-spec.md index fe3942a..bff9d14 100644 --- a/docs/check-statements-spec.md +++ b/docs/check-statements-spec.md @@ -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" + } +} ```