-
Example Code Description |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
it is using function calling directly, instead of the thought/action/observation prompting style |
Beta Was this translation helpful? Give feedback.
-
@hwchase17 Is there a way we can add it in the prompt with adding the variables of tool names and tool in the prompt and just telling it in prompt but then should i give this prompt to the function tool calling agent or langgraphs prebuilt create react agent in the message modifier |
Beta Was this translation helpful? Give feedback.
-
With OpenAI, tools are called without "thought". The workaround I did was to add a "reason" field to each available tool in which LLM must fill in the reason for calling that function, thus forcing the intermediate thoughts to be recorded. But it is worth testing whether this improves performance in your use case or not. |
Beta Was this translation helpful? Give feedback.
-
I am not sure it is accurate to call it a react agent when there is no Thought/Observation/Action pair being output. What makes it a react agent and how is it different from just a tool calling agent? |
Beta Was this translation helpful? Give feedback.
To add to this, some models like Claude 3 perform function calling with a "thought" step built-in, while others (like OpenAI) do not. It's a bit provider-dependent right now