unhardcoded
라우팅된 호출 구성

워크플로우

다섯 가지 워크플로우 패턴. 각각은 하나의 통합 트레이스를 작성하는 정책 기반 라우팅 단계들의 유계 그래프입니다.

워크플로우

다섯 가지 공통 형태. 각 탭에는 플로우와 이 예시에서 각 단계가 라우팅되는 모델이 표시됩니다. flow_ir 보기를 열어 전체 복사 가능한 항(term)을 확인하세요. 먼저 POST /x/flow/normalize로 드라이런하세요. 각 노드는 자체 정책(filter + rank)을 선언하며, 다이어그램의 모델 ID와 비용은 실제 라우팅 결과를 보여줍니다 — 내부 값은 영어로 유지됩니다.

저비용으로 분류하고, 품질 기준에 맞춰 초안을 작성한 후, 전송 전에 거부 가능한 강력한 no-log 가드를 수행합니다. 다이어그램의 각 노드는 자체 정책을 결정하며, "제외됨" 레이블은 기준 미달 후보, "확정 · 실행"은 선택된 모델을 나타냅니다.

flow_ir 보기
flow.support-ticket.json
["flow", {
  "u": {"kind": "input"},
  "t": {"kind": "llm", "system": "Classify the ticket and extract the account id as JSON.",
    "policy": ["policy", ["and", ["meets_req"], ["not", ["is", "disabled"]], ["has_cap", "supports_json_mode"]],
      ["neg", ["normalize", ["field", "price_out"]]], ["argmax"], ["id"], ["always", {"action": "next_candidate"}]],
    "inputs": ["u"]},
  "d": {"kind": "llm", "system": "Write a reply using the ticket and the triage.",
    "policy": ["policy", ["and", ["meets_req"], ["not", ["is", "disabled"]], ["cmp", "bench_intelligence", "ge", 0.55]],
      ["neg", ["normalize", ["field", "price_out"]]], ["argmax"], ["id"], ["always", {"action": "next_candidate"}]],
    "inputs": ["u", "t"], "template": "Ticket:\n$1\n\nTriage:\n$2"},
  "g": {"kind": "llm", "system": "Check brand voice, PII, refund limits. Refuse if any fail.",
    "policy": ["policy", ["and", ["meets_req"], ["not", ["is", "disabled"]], ["is", "no_log"]],
      ["field", "bench_intelligence"], ["argmax"], ["id"], ["always", {"action": "next_candidate"}]],
    "inputs": ["d"]},
  "out": {"kind": "output", "inputs": ["g"]}
}]
← 문서로 돌아가기