Skip to main content
The model returns function_call items. Your code runs them and sends function_call_output items back. Because NagaAI keeps no state, the next request carries the earlier function_call items too.
tool_choice takes auto, none, required or {"type": "function", "name": "..."}. NagaAI also accepts the Chat Completions tool shape, {"type": "function", "function": {...}}. See Tool calling for the rules shared by all formats.