openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

Add the "addTool()" fom Realtime API client SDK

Open rdvo opened this issue 1 year ago • 0 comments

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • [X] This is a feature request for the Node library

Describe the feature or improvement you're requesting

Working with tools is easy. Just call .addTool() and set a callback as the second parameter. The callback will be executed with the parameters for the tool, and the result will be automatically sent back to the model.

the way you can pass the tool spec + the actual logic for executing it easily in one thing and have it handle it s really convenient. Any chance that's added to this package?

Additional context

No response

rdvo avatar Oct 06 '24 20:10 rdvo