Skip to content
Adding the "tools" ...
 
Notifications
Clear all

Adding the "tools" parameter to the OpenAI Chat Model for AI agents

2 Posts
2 Users
0 Reactions
4 Views
Valerian_Lebert
(@valerian_lebert)
Posts: 5
Active Member
Topic starter
 

Hi, I need to have the tools parameters available in the OpenAI chat model when using AI agents.
https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools

I find the way tools are handled in langchain to be less than ideal, as it's not straightforward to describe your tool parameters and the function's call structure.

Therefore, I typically opt for using the OpenAI API HTTP Call with the tools parameters.

However, when using a direct HTTP call, features like memory are not fully accessible.

Could you please incorporate this parameter? It requires a JSON schema to define your tool's input.

 
Posted : 14/03/2024 4:34 pm
AhmedAlnaqa
(@ahmedalnaqa)
Posts: 1
New Member
 

I believe you can pass the parameter like this:


{{ $fromAI("write_whatever") }}

The AI agent will send the whatever value to this tool.

 
Posted : 08/01/2025 5:55 am
Share: