OpenRouter's Agent SDK packages the repeated exchanges needed when a model uses tools. Developers supply ToolAn operation that the software around a model makes available for the model to request, with a name, expected inputs and a kind of result.Full definition → definitions and stopping conditions; callModel checks tool arguments, executes requested functions, returns their results to the model and continues the conversation. The SDK tutorial also describes tools that pause for approval before execution. This moves the recurring control loop into a reusable library while leaving the ApplicationSoftware arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.Full definition → responsible for defining available actions and deciding when a run should stop.
Terms in this piece · Glossary
Tool — An operation that the software around a model makes available for the model to request, with a name, expected inputs and a kind of result.
Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
Agent loop — A cycle in which an agent observes, decides, acts, and interprets the result.
Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.