Add "tools" parameter to OpenAI Chat Model for AI agents

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

Actually, I don’t like the way tools are handled in langchain because you can’t easily describe your tools parameter and the call structure of the function.

So I always tend to use OpenAI API HTTP Call with tools parameters.

However, when using a direct HTTP call, you can’t use all AI agent features such as memory, etc.

Could you add this parameter ? It expects a JSON schema describing your tool input.

I think u can pass the paramter like this"
{{ $fromAI(“write_whatever”) }}
the AI gent will sen to this tools the what_ever value