AI 개발

OpenAI DevDay 2026 이후 Structured Output과 Tool Calling은 무엇이 바뀌었나? 2026 Decisions vs text.format

약 13분

DevDay는 “새 JSON Schema 제품”을 내지 않았다. recap의 주선은 Decisions와 Computer use가 있는 Agents API다. 2026-10-22 GA 이후 문서는 단호하다: 유한 답은 Decisions, 스키마 객체는 Responses text.format, 부작용은 function calling. 이 글은 그 세 JSON 계약만 나눈다. workflow 층을 다시 쓰지 않고, 키노트 전 예측문도 고치지 않는다.

읽기 전 요약

능력 DevDay 이후 공식 위치 무엇이 돌아오나
Structured Output Responses: text.format type=json_schema. 새 API 아님 스키마 준수 객체(추출·UI)
Tool Calling Responses: 평평한 tools[]. output은 function_call name + arguments 문자열. 호스트가 실행
유한 결정 POST /v1/decisions. 10/22 GA. input_json 가능 answers: predicate / choice / score. 도구 실행 없음
Agent 루프 Decisions 라우트 → Responses 도구 → 호스트 state choice는 facts. Call/Result는 Responses
Programmatic Tool Calling GPT-5.6부터. DevDay 세션에서 언급. Structured Output 대체 아님 호스티드 V8이 allowed_callers 도구를 호출

사실 기준 2026-10-30: DevDay recap, Decisions GA, Responses 이전 / Structured Outputs / function calling. A-1042, T-8841, resp_8k1a는 가상.

바뀐 것은 분기이지 “더 나은 JSON mode”가 아니다

키노트 전 많은 초안은 Structured Output, Tool Calling, Agent Workflow를 하나의 거대 schema로 묶었다. 2026 공식 문서는 세 일을 나눈다:

  • Structured Output은 Responses. Chat Completions response_format은 text.format으로. recap은 당일 신제품으로 올리지 않았다.
  • Tool Calling은 평평한 type/name/parameters. 회신은 call_id의 function_call_output. strict를 생략하면 정규화를 시도하다 strict: false로 떨어질 수 있다.
  • 유한 라우팅은 Decisions. GA에 input_json, 최대 400문항, function_call 이력을 증거로. 돌아오는 것은 typed answers이지 커스텀 업무 객체가 아니다.

당일 발표: DevDay recap. 층 연결: workflow. 필드 이전: API 이전.

옛 요청 vs text.format vs 평평한 도구 vs Decisions

1. 라우트·추출·도구를 한 Chat Completions에 넣지 말 것. 아직 흔하지만 DevDay 이후 주 경로가 아니다:

{
  "model": "gpt-4o",
  "messages": [
    {"role": "user", "content": "Extract order A-1042 as JSON."}
  ],
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "order_extract",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "order_id": { "type": "string" },
          "status": { "type": "string" }
        },
        "required": ["order_id", "status"],
        "additionalProperties": false
      }
    }
  },
  "tools": [{
    "type": "function",
    "function": {
      "name": "lookup_order",
      "parameters": { "type": "object" }
    }
  }]
}

2. 스키마 객체: Responses + text.format. 공식: 도구는 function calling. 사용자/UI 구조는 text.format.

{
  "model": "gpt-6-astra",
  "input": "Jane paid order A-1042.",
  "text": {
    "format": {
      "type": "json_schema",
      "name": "order_extract",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "order_id": { "type": "string", "pattern": "^[A-Z]-\\d{4}$" },
          "status": { "type": "string", "enum": ["paid", "open"] }
        },
        "required": ["order_id", "status"],
        "additionalProperties": false
      }
    }
  }
}

3. 부작용: 평평한 tools. arguments를 검증한 뒤 실행. 이어가기는 previous_response_id. Decisions answers 전체를 prompt에 stringify하지 말 것.

{
  "model": "gpt-6-luna",
  "previous_response_id": "resp_8k1a",
  "tools": [{
    "type": "function",
    "name": "lookup_order",
    "strict": true,
    "parameters": {
      "type": "object",
      "properties": {
        "order_id": { "type": "string", "pattern": "^[A-Z]-\\d{4}$" }
      },
      "required": ["order_id"],
      "additionalProperties": false
    }
  }],
  "input": [{
    "role": "user",
    "content": [{ "type": "input_text", "text": "Look up A-1042 if needed." }]
  }]
}

4. 분류/라우트: Decisions + input_json. data 키는 메시지나 이미지 fetch가 되지 않는다. 답 유형은 선언한 question type.

{
  "model": "gpt-6-luna",
  "input": [{
    "role": "user",
    "content": [
      { "type": "input_text", "text": "Route using the ticket and order." },
      {
        "type": "input_json",
        "data": {
          "ticket": { "body": "Please refund the duplicate charge." },
          "order": { "order_id": "A-1042", "charges": [49, 49] }
        }
      }
    ]
  }],
  "questions": [{
    "type": "choice",
    "name": "route",
    "instructions": "Pick the next host action. Do not call tools.",
    "choices": [
      { "value": "lookup", "description": "Call lookup_order" },
      { "value": "hold", "description": "Stop for a human" }
    ]
  }]
}

세 경로: 객체 생성, 도구 요청, 유한 답

“JSON”을 제품명으로 쓰면 API를 고른다. 반환 계약으로 고른다:

필요한 것 쓸 API 쓰지 말 것
추출 필드 / UI 객체 Responses text.format json_schema Decisions answers나 json_object로 schema 흉내
DB 조회, 환불, 파일 쓰기 Responses function tools (strict + additionalProperties:false) Decisions가 lookup을 실행하게 하기
부서 라우트 / 중복 청구인가 Decisions choice 또는 predicate 거대 json_schema로 next_action 산문
도구 결과 다단계 집계·필터 programmatic_tool_calling + allowed_callers 새 Structured Output으로 취급
호스티드 장시간 루프 Agents API (computer use 포함) Chat Completions messages를 가짜 세션으로

Programmatic Tool Calling은 격리 V8에서 JavaScript로 도구를 조율한다. 클라이언트 도구는 앱이 실행한다. 제어 흐름이지 “업무 schema에 맞는 출력”이 아니다.

옛 Chat Completions에서 세 경로로

가상 주문으로 staging한 뒤 운영 티켓:

  1. 출력 세 가지를 적는다. 객체 / 도구 인자 / 유한 enum. 각 schema 또는 choices.
  2. 객체는 text.format. Responses에서 response_format 제거.
  3. 도구 정의를 평평하게. additionalProperties:false와 required. 비엄격이면 명시적 false.
  4. 라우트는 Decisions. 증거는 input_json. choice를 facts에 쓰고 Responses 도구 요청.
  5. 회신은 call_id. 옛 role:tool 메시지 금지.

호스티드 Agents에서는 Call/Result가 세션 이벤트가 된다. “Decisions는 도구를 실행하지 않는다”는 그대로다.

schema, arguments, answers를 펼친다

“모델이 나쁜 JSON을 냈다”의 대부분은 세 경로를 한 요청에 섞은 것이지 Luna가 필드를 못 채운 것이 아니다.

  • arguments와 text.format 결과는 포맷. 도구 parameters와 추출 schema는 Schema 검증.
  • 이전 전후는 JSON Diff: 남은 response_format, 중첩 function 래퍼.
  • Decisions answers의 name=route는 JSONPath. 주문 객체로 오인하지 말 것.
  • 다섯 구간 필드는 Agent JSON state.
  • JSONSort는 로컬. 실제 티켓이나 키를 올리지 말 것.

세 JSON 계약이 각각 Schema를 통과해야 이전 완료. “다 JSON처럼 보인다”로는 부족하다.

흔한 실수

  • DevDay가 새 Structured Outputs API를 냈다고 생각. recap에 없음. Responses에 남음.
  • Decisions로 주문 객체를 생성. answers는 probability / choice / score뿐.
  • Responses에 response_format을 계속 보냄. 이전 가이드는 text.format.
  • function.function 이중 래퍼를 유지. Responses는 내부 태그 평평한 형태.
  • strict를 생략하고 항상 엄격하다고 가정. 비호환 schema는 strict:false.
  • Programmatic Tool Calling을 schema 문으로 취급. 호출 조율. 업무 객체는 text.format 또는 호스트 검증.

FAQ

json_object 모드를 써도 되나?

유효 JSON은 나오지만 스키마는 보장하지 않는다. 가능하면 text.format json_schema.

input_json이 Structured Output을 대체하나?

아니요. 증거다. 답 형태는 question type.

Chat Completions function 래퍼를 당장 지우나?

Completions에 있는 동안 외층은 유지 가능. Responses로 가면 평평한 정의와 call_id 회신.

workflow / state 글과 차이는?

그 글은 루프 연결과 호스트 state. 이 글은 각 JSON 계약이 어느 공식 API에 속하는지.

Programmatic Tool Calling은 DevDay 신제품인가?

GPT-5.6 도구 가이드. DevDay “Stop Overpaying”에서 언급. 9/29 Structured Output 제품으로 쓰지 말 것.

결론

DevDay 2026 이후 Structured Output과 Tool Calling은 더 큰 schema로 합쳐지지 않았다. 객체는 text.format, 부작용은 평평한 function, 유한 선택은 Decisions. 10/22 GA는 라우트 경로를 굳혔을 뿐 Decisions가 업무 JSON을 내게 하지 않는다.

세 계약을 그린 뒤 필드 이름을 바꾼다. 모델은 JSON을 채울 뿐. 실행과 다음 홉은 호스트.

더 읽기

변경 기록: 최초 게시