The SDK sends the prompt, receives a tool call from the model, executes
Prompt example extracted from OpenRouter Docs.
GPT-5ClaudeGemini
Prompt
The SDK sends the prompt, receives a tool call from the model, executes
get_weather
, feeds the result back, and returns the final response — all in one
callModel
invocation.
The SDK sends the prompt, receives a tool call from the mode