Developers register a set of tools by providing the model with their names, descriptions, and parameter schemas (typically as JSON Schema). When the model decides a tool is needed, it halts generation and outputs a structured function call object. The host application executes the real function, then returns the output as a new message. The model resumes generation with the grounded result in context.
- • Tool schemas describe what each function does and what parameters it accepts.
- • The model decides when (and if) to call a tool based on the conversation.
- • Results are fed back into the context for the model to use in its final response.