Skip to main content

Tool calling

You can define tools (functions) that the model can invoke during a live session. The model will return a tool call when it decides to use a function, and you send the result back to continue the conversation. See the Gemini Live API tools documentation and OpenAI Realtime API function calling documentation for more details.
You can adapt this pattern to call TrueFoundry MCP tools as well — replace the dummy function with an MCP tool invocation via the MCP Gateway SDK.