01 / DECIDE
Architecture decision
state choice、hosted/custom tool、multimodal input が必要な新規 OpenAI integration に使う。
typed input/output item により message、reasoning、tool call、tool result を multi-step request 全体で分離できる。 input、output、state、side effect を一つの観測可能な経路にしてから、Responses を agentic application boundary にする の所有層を決めます。
02 / BUILD
3段階の実装
- 01
contract を定義
caller、data classification、success condition、timeout、cancel、ownership を先に記述します。state choice、hosted/custom tool、multimodal input が必要な新規 OpenAI integration に使う。
- 02
狭い経路を構築
request correlation、typed state、reversible failure handling を持つ一つの end-to-end path だけを実装します。typed input/output item により message、reasoning、tool call、tool result を multi-step request 全体で分離できる。
- 03
outcome を証明
acceptance を再実行可能な fixture、contract test、browser test にします。contract test で全 expected output item、refusal、incomplete result、tool terminal state を解析する。
03 / BOUND
Production boundary
storage と deletion を明示的に選び、convenience state を product database や retention policy の代替にしない。
04 / PROVE
Acceptance evidence
contract test で全 expected output item、refusal、incomplete result、tool terminal state を解析する。
SOURCE / HTTP
再現可能な source probe
curl -fsSI 'https://developers.openai.com/api/docs/guides/migrate-to-responses' | sed -n '1,5p'