Daily Edition Sources +3

API Discovery: Let one model ask another before it answers

Pydantic AI has added a provider-native AdvisorTool for Anthropic and OpenRouter: a faster executor can ask a stronger model for help without turning that consultation into an application-owned function call.

A rough zine diagram shows an executor model consulting an advisor model through a provider boundary, then receiving a challenge to its plan under an advice-is-not-fact caveat.
Diagram Punkconsultation can challenge a plan without proving it.
repo pydantic/pydantic-ai evidence
3 source signals 1 repo commit 883d5a9
Evidence: commit 883d5a9 / July 25, 2026 / Daily Edition
Open Edition Evidence below

What changed: Pydantic AI’s new AdvisorTool support exposes a model-provider feature as an explicit agent capability. An executor model can consult a second model mid-generation; the provider runs that consultation and returns the result to the same turn. Anthropic and OpenRouter are supported. OpenAI, Google, and the other listed providers are not.

A useful split: execution versus consultation

This is not the same as writing a Python tool that calls another model. The public native-tools definition says these tools run in the provider’s infrastructure. That makes the integration a good fit for a bounded second opinion: let a relatively quick model draft a migration plan, then ask an advisor to inspect its assumptions before the executor writes the answer.

For an Anthropic-backed agent, the public example is compact:

from pydantic_ai import Agent, AdvisorTool
from pydantic_ai.capabilities import NativeTool

agent = Agent(
    'anthropic:claude-sonnet-5',
    capabilities=[NativeTool(AdvisorTool(model='claude-opus-4-8'))],
)

result = agent.run_sync(
    'Draft a cache-invalidation plan. Consult your advisor first, then name the riskiest assumption.'
)

Copy-paste instruction for an agent: “Use the provider-native advisor only to challenge the plan’s assumptions. Keep the final recommendation short, list what the advisor did not verify, and do not make changes or call external tools.” That keeps a consultation from masquerading as an autonomous review-and-act pipeline.

The implementation carries important differences. Anthropic can preserve advisor results in message history and reports advisor usage details; OpenRouter accepts any executor model but uses an OpenRouter catalog slug for the advisor, sends forward_transcript=false, and ignores max_uses and caching. The regression tests check that mapping rather than assuming the two providers share a contract.

Test caveat

This is a source-backed interface, not a free second brain. It requires valid provider credentials and compatible models; advisor calls have their own usage and cost behavior; streaming can pause while consultation happens; and this exact request was not executed in this run. A provider-side answer is still model output, not verified fact. Test it first on a reversible planning task, inspect the provider’s current access and compatibility rules, and make the executor name the evidence it would need before taking any consequential action.

Evidence Trail

Receipts below the story

The article above is the public narrative. This section keeps the source trail and limits on the same page.

Edition
DateJuly 25, 2026
LaneDaily Edition
Confidence78%
Sources3
Repospydantic/pydantic-ai

Primary Evidence

Evidence Limits

  • A working use requires a compatible provider account, valid credentials, currently supported model names, and an operator’s own cost and latency budget. The example was not executed in this run.
  • The provider performs the consultation; its answer remains generated advice, not an independent verification or authorization to act.
Keep Digging

Continue with your favorite AI

Carry the story’s context, evidence trail, and limits into a new conversation.

Build a conversation brief
Choose a direction

The brief itself is copied on your device, not sent to an assistant by The Git Reporter. Review it before pasting; the service you open has its own data and privacy terms.

Letters & Corrections

Send a note to the desk

Corrections, missing context, or a follow-up lead.