메인 콘텐츠로 건너뛰기
datetime Server Tool은 모델에 현재 날짜와 시간을 제공합니다.

빠른 시작

{
  "model": "openai/gpt-5.4",
  "messages": [{"role": "user", "content": "What day of the week is today, and how many days until the end of the year?"}],
  "tools": [{"type": "arouter", "arouter": {"id": "datetime"}}]
}

구성

매개변수유형기본값설명
idstring"datetime" 이어야 합니다
timezonestring"UTC"IANA 시간대 식별자 (예: "America/New_York", "Asia/Shanghai", "Europe/London")

도구 응답 형식

{
  "datetime": "2026-04-03T14:32:00Z",
  "date": "2026-04-03",
  "time": "14:32:00",
  "timezone": "UTC",
  "day_of_week": "Friday",
  "unix_timestamp": 1775319120
}

사용 사례

일정 계획 및 관리:
response = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Create a 2-week project plan starting from today."}],
    tools=[{"type": "arouter", "arouter": {"id": "datetime", "timezone": "Asia/Shanghai"}}],
)

가격

datetime 도구는 무료입니다——일반 LLM Token 비용 외 추가 요금이 없습니다.

다음 단계