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.

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.