메인 콘텐츠로 건너뛰기
Server Tools는 추론 중에 ARouter가 모델을 대신하여 실행하는 기능입니다. 사용자 정의 함수 호출(코드가 함수를 실행)과 달리, Server Tools는 ARouter가 완전히 처리합니다——모델이 언제 호출할지 결정하고, ARouter가 실행하며, 결과가 자동으로 대화에 주입됩니다.
Server Tools는 현재 베타 단계입니다. 인터페이스는 안정적이지만 추가 도구가 계속 추가되고 있습니다.

사용 가능한 Server Tools

도구 ID설명가격
web_search웹을 검색하고 인용이 포함된 구조화된 결과 반환검색 쿼리당
datetime모든 시간대의 현재 날짜와 시간 반환무료

Server Tools vs Plugins vs 사용자 정의 도구

Server ToolsPlugins사용자 정의 도구
누가 실행하나요?ARouterARouter귀하의 애플리케이션
모델이 호출을 제어하나요?아니요 (매 요청에 적용)
구조화된 인용?예 (웹 전용)해당 없음
스트리밍에서 사용 가능?

빠른 시작

{
  "model": "openai/gpt-5.4",
  "messages": [{"role": "user", "content": "What are the top AI news stories today?"}],
  "tools": [{"type": "arouter", "arouter": {"id": "web_search"}}]
}
const response = await client.chat.completions.create({
  model: "openai/gpt-5.4",
  messages: [{ role: "user", content: "What are the top AI news stories today?" }],
  tools: [{ type: "arouter", arouter: { id: "web_search" } } as any],
});
console.log(response.choices[0].message.content);

사용량 추적

{
  "usage": {
    "prompt_tokens": 450, "completion_tokens": 210, "total_tokens": 660, "cost": 0.00234,
    "server_tool_calls": {"web_search": 2}
  }
}

다음 단계