Released 2026-11-09 · Compare with 1.0.0-rc.3
Features
- Add
decision <model>OpenTelemetry spans fordecide, automatic model selection, and tool approvals, with policy-aware model, usage, cost, and failure metadata that distinguishes refusals from request failures.
A decision sits under the operation it runs in, or under the turn when model routing runs before the turn's first step.@vercel/agent-runsaddsAgentRun.decisionand an optionalAgentTelemetry.activeSpan, so a decision nests under a host span inside its operation but not under a host span from another trace, such as a workflow step. (#5349)
Bug Fixes
- Make connection sign-ins countable in traces: each sign-in span names its agent, a failed sign-in records its reason, and a call a connection refused records which connection and why.
agent.approvalspans now carrygen_ai.agent.nameandagent.name, so a query scoped to one agent no longer drops its sign-in prompts. A sign-in that fails with a reason code such asaccess_deniedrecords it asagent.connection.authorization.reason; a sign-in that ends any other way, such as one a new message withdrew, records none. A tool call that fails withConnectionAuthorizationFailedError, including one that never asked anyone to sign in, such asprincipal_requiredorsign_in_unavailablein a turn a schedule started, recordseve.connection.nameandagent.connection.authorization.reasonon itsexecute_toolspan. Only reason codes are recorded: a free-text reason or error message stays off the span whatever the trace policy records. (#6078)