-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi Cloudflare team,
I am using the @hf/nousresearch/hermes-2-pro-mistral-7b model with the runWithTools function and an array of tools (the tools object). I have the following question:
Is it possible to identify which functions within the tools array were actually executed by the model, if any?
For example:
const r = await runWithTools(ai, '@hf/nousresearch/hermes-2-pro-mistral-7b', {
messages: [.....],
tools: [....]
});
console.log(r.tool_calls)I noticed that the constant r returns an object, but the tool_calls field in the response does not seem to include information about the executed functions. My specific questions are:
- Under what circumstances does the
tool_callsfield in the response include relevant data? - Is there any explicit way to track which functions were called during the model's execution?
Thanks in advance for your help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels