Standardizing Tool Calling with Chat Models #20343
Replies: 11 comments 15 replies
-
This is great ✨🥵 |
Beta Was this translation helpful? Give feedback.
-
Great, finally a standardised input and output! |
Beta Was this translation helpful? Give feedback.
-
It's so useful! |
Beta Was this translation helpful? Give feedback.
-
Cool! ty! |
Beta Was this translation helpful? Give feedback.
-
Thanks ! Nice feature to scale apps easier |
Beta Was this translation helpful? Give feedback.
-
Can you I ask,
|
Beta Was this translation helpful? Give feedback.
-
Got the following issue running llm = ChatGroq(temperature=0, model_name="mixtral-8x7b-32768",
groq_api_key=env_settings.groq_api_key)
agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(
agent=agent, tools=tools, max_iterations=5, handle_parsing_errors=True, verbose=True)
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the updated function. I am able to use my custom tools with OpenAI and MistralAI without any issues. However, I also want to implement chat memory. I was able to get it working with OpenAI model but not on Mistral. Do you have any suggestions?
when I run with MistralAI, I get the following error.
|
Beta Was this translation helpful? Give feedback.
-
Are there any requirements towards the prompt? And does the create_tool_calling_agent/tool_calls have any effects on the prompt of an agent? |
Beta Was this translation helpful? Give feedback.
-
I want to make my agent return structured outputs, |
Beta Was this translation helpful? Give feedback.
-
Love the standardised interface! Just wondering if there is a timeline for other chat models to implement bind_tools? Is this planned for a specific release or dependent on the providers? I'm restricted to a non-implemented provider so just wondering how long I will need to put my Agent dreams on hold :D |
Beta Was this translation helpful? Give feedback.
-
We're happy to introduce a more standardized interface for using tools:
ChatModel.bind_tools()
: a method for attaching tool definitions to model calls.AIMessage.tool_calls
: an attribute on theAIMessage
returned from the model for easily accessing the tool calls the model decided to make.create_tool_calling_agent()
: an agent constructor that works with ANY model that implementsbind_tools
and returnstool_calls
.We'll share some sample code snippets below. You can read more about this
interface on our blog or in the python docs:
We'd love to hear feedback from you or any issues that you encounter in this discussion!
Bind Tools:
AIMessage.tool_calls
:Please let us know if you have any feedback!
Beta Was this translation helpful? Give feedback.
All reactions