Vibeleaderboard
← All Intel
Intel / article

Agent Sdk With Callmodel

Source
openrouter.ai
Author
OpenRouter
Date

Context

OpenRouter's SDK packages the repeated exchanges needed when a model uses tools. Developers supply tool 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 application responsible for defining available actions and deciding when a run should stop.

Terms in this piece · Glossary
  • AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
  • agentic loop — The cycle an agent runs in: decide, call a tool, read the result, decide again — repeating until the goal is met or a stop condition fires.
Read the source openrouter.ai
More from OpenRouter
Recommended reads
Comments

Checking sign-in…

Loading comments…