AdvisorServerToolOpenRouter - Go SDK

AdvisorServerToolOpenRouter type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit name to act as the default advisor.

Fields

FieldTypeRequiredDescriptionExample
Parameters*components.AdvisorServerToolConfigConfiguration for one openrouter:advisor server tool entry.{"model": "~anthropic/claude-opus-latest","name": "reviewer"}
Typecomponents.AdvisorServerToolOpenRouterType✔️N/A