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_calls field 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!
Hi Cloudflare team,
I am using the
@hf/nousresearch/hermes-2-pro-mistral-7bmodel with therunWithToolsfunction and an array oftools(thetoolsobject). I have the following question:Is it possible to identify which functions within the
toolsarray were actually executed by the model, if any?For example:
I noticed that the constant
rreturns an object, but thetool_callsfield in the response does not seem to include information about the executed functions. My specific questions are:tool_callsfield in the response include relevant data?Thanks in advance for your help!