所有伺服器工具
讓快速的執行模型在工作時,向智慧程度更高的顧問模型尋求指引。每位顧問都可使用任意 OpenRouter 模型、擁有自己的指示,並在重播對話紀錄時記住先前的諮詢內容。
運作方式
適用於決策時刻:確定採用某種方法之前、模型卡關時,或模型宣告任務完成之前。
- 1
您的模型 透過提示詞向顧問尋求指引。
- 2
顧問模型 仔細思考後,將建議作為工具結果傳回。
- 3
您的模型 依照建議繼續,並撰寫最終答案。
供應商與定價
OpenRouter
模型 token 用量
依每個受諮詢顧問模型的一般 token 用量計費。
每個請求皆適用標準模型 token 費用。
使用此工具
OpenRouter 會在請求期間執行工具,並將結果傳回模型,因此不需要用戶端工具迴圈。
支援的 API:Chat Completions, Responses, and Anthropic Messages。
Anthropic Messages Use the native Anthropic shape, { "type": "advisor_20260301", "name": "advisor", "model": "<advisor model>" }. The model is the only setting it carries, so use openrouter:advisor on Chat Completions or Responses for instructions and the other parameters.
Shell
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5-mini",
"tools": [
{
"type": "openrouter:advisor",
"parameters": {
"model": "~anthropic/claude-opus-latest"
}
}
],
"messages": [
{
"role": "user",
"content": "Design a rate limiter for a multi-tenant API. Ask your advisor if you get stuck."
}
]
}'設定、參數與範例請參閱文件。
閱讀整合指南常見問題
A fast executor model can call openrouter:advisor mid-generation to consult a stronger model for guidance. Set parameters.model on the tool definition to pick any OpenRouter model as the advisor; otherwise it falls back to the model named in the tool call or the caller model.
Each consultation is billed as normal token usage on the advisor model and folded into the parent request. Use openrouter:advisor on Chat Completions or Responses for custom instructions and parameters, or Anthropic’s native advisor_20260301 shape on the Messages API.
相關工具
協調調度