-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: type hinting for runner functions #1071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: type hinting for runner functions #1071
Conversation
* origin: [BFCL] Fix prompt concatenation bug in Qwen template (ShishirPatil#1068) [BFCL] Multi-turn TravelAPI book_flight() Fix (ShishirPatil#966) _get_item() can not handle the "." directory in path string (ShishirPatil#1060) Add support for llama-3.1-nemotron-ultra-253b-v1 to BFCL (ShishirPatil#1032) [BFCL] Omit Reasoning Content from Chat History for Function-Calling Models (ShishirPatil#1064) [BFCL] Add support for Ling-Lite-V1.5 (ShishirPatil#1056) [BFCL] Added support for DeepSeek-R1-0528 and DeepSeek-V3-0324 (ShishirPatil#1063) [BFCL] Add type hinting (ShishirPatil#1058)
@@ -33,8 +34,14 @@ def get_handler(model_name): | |||
|
|||
|
|||
def multi_turn_runner( | |||
handler, model_result, prompt, possible_answer, model_name, test_category, score_dir | |||
): | |||
handler: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handler should be of type BaseHandler
(from berkeley-function-call-leaderboard/bfcl_eval/model_handler/base_handler.py
)
handler: str, | ||
model_result: list[dict], | ||
prompt: list[dict], | ||
possible_answer: list[dict], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possible_answer should be a list of list of strings for multi turn.
adding some type hinting for the runner functions