Vibeleaderboard
← All Intel
Intel / article

Agent Sdk With Callmodel

Source
openrouter.ai
Author
OpenRouter
Date

Context

OpenRouter's Agent SDK packages the repeated exchanges needed when a model uses tools. Developers supply 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 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.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source openrouter.ai
More from OpenRouter
Recommended reads