44---
55# コード例
66
7- [ repo] ( https://github.com/openai/openai-agents-python/tree/main/examples ) の examples セクションで、 SDK のさまざまなサンプル実装を確認できます 。examples は、異なるパターンと機能を示す複数のカテゴリーに整理されています。
7+ [ repo] ( https://github.com/openai/openai-agents-python/tree/main/examples ) の examples セクションで、SDK のさまざまなサンプル実装をご覧いただけます 。examples は、異なるパターンと機能を示す複数のカテゴリーに整理されています。
88
99## カテゴリー
1010
@@ -13,46 +13,48 @@ search:
1313
1414 - 決定論的ワークフロー
1515 - Agents as tools
16- - エージェントの並列実行
16+ - 並列エージェント実行
1717 - 条件付きツール使用
18- - 入出力ガードレール
19- - 審判としての LLM
18+ - 入力 / 出力ガードレール
19+ - 判定者としての LLM
2020 - ルーティング
2121 - ストリーミングガードレール
2222
2323- ** [ basic] ( https://github.com/openai/openai-agents-python/tree/main/examples/basic ) :**
2424 これらのコード例では、次のような SDK の基本機能を紹介しています。
2525
26- - Hello world のコード例 ( デフォルトモデル、 GPT-5、 open-weight モデル )
26+ - Hello World のコード例( デフォルトモデル、GPT-5、open-weight model)
2727 - エージェントライフサイクル管理
2828 - 動的システムプロンプト
29- - ストリーミング出力 ( テキスト、項目、関数呼び出し引数 )
30- - ターン間で共有セッションヘルパーを使用する Responses websocket transport ( ` examples/basic/stream_ws.py ` )
29+ - ストリーミング出力(text、items、function call args)
30+ - ターン間で共有セッションヘルパーを使う Responses websocket transport( ` examples/basic/stream_ws.py ` )
3131 - プロンプトテンプレート
32- - ファイル処理 ( ローカルおよびリモート、画像および PDF )
33- - 使用状況トラッキング
32+ - ファイル処理(ローカル / リモート、画像 / PDF)
33+ - 使用状況追跡
34+ - Runner 管理の retry 設定(` examples/basic/retry.py ` )
35+ - LiteLLM を使った Runner 管理の retry(` examples/basic/retry_litellm.py ` )
3436 - 非 strict な出力型
35- - 以前の response ID の使用
37+ - 前回 response ID の使用
3638
3739- ** [ customer_service] ( https://github.com/openai/openai-agents-python/tree/main/examples/customer_service ) :**
3840 航空会社向けのカスタマーサービスシステムのコード例です。
3941
4042- ** [ financial_research_agent] ( https://github.com/openai/openai-agents-python/tree/main/examples/financial_research_agent ) :**
41- 金融データ分析向けのエージェントとツールを使った構造化リサーチワークフローを示す、金融リサーチエージェントです 。
43+ 金融データ分析のためのエージェントとツールを使った構造化された調査ワークフローを示す、financial research agent です 。
4244
4345- ** [ handoffs] ( https://github.com/openai/openai-agents-python/tree/main/examples/handoffs ) :**
44- メッセージフィルタリングを伴うエージェントハンドオフの実践的なコード例をご覧ください 。
46+ メッセージフィルタリングを用いたエージェントのハンドオフの実践的なコード例をご覧ください 。
4547
4648- ** [ hosted_mcp] ( https://github.com/openai/openai-agents-python/tree/main/examples/hosted_mcp ) :**
47- hosted MCP ( Model Context Protocol) コネクターと承認の使用方法を示すコード例です 。
49+ hosted MCP( Model context protocol)コネクタと承認の使い方を示すコード例です 。
4850
4951- ** [ mcp] ( https://github.com/openai/openai-agents-python/tree/main/examples/mcp ) :**
50- MCP ( Model Context Protocol) を用いたエージェントの構築方法を学べます 。内容は次のとおりです。
52+ MCP( Model context protocol)を使ってエージェントを構築する方法を学べます 。内容は次のとおりです。
5153
52- - ファイルシステムのコード例
54+ - Filesystem のコード例
5355 - Git のコード例
5456 - MCP prompt server のコード例
55- - SSE ( Server-Sent Events) のコード例
57+ - SSE( Server-Sent Events) のコード例
5658 - Streamable HTTP のコード例
5759
5860- ** [ memory] ( https://github.com/openai/openai-agents-python/tree/main/examples/memory ) :**
@@ -68,36 +70,36 @@ search:
6870 - Responses compaction セッションストレージ
6971
7072- ** [ model_providers] ( https://github.com/openai/openai-agents-python/tree/main/examples/model_providers ) :**
71- カスタムプロバイダーや LiteLLM 連携を含め、 SDK で OpenAI 以外のモデルを使う方法を確認できます 。
73+ カスタムプロバイダーや LiteLLM 統合を含め、 SDK で非 OpenAI モデルを使う方法を紹介します 。
7274
7375- ** [ realtime] ( https://github.com/openai/openai-agents-python/tree/main/examples/realtime ) :**
7476 SDK を使ってリアルタイム体験を構築する方法を示すコード例です。内容は次のとおりです。
7577
76- - 構造化テキストおよび画像メッセージを使った Web アプリケーションパターン
77- - コマンドラインの音声ループと再生処理
78- - WebSocket 経由の Twilio Media Streams 連携
79- - Realtime Calls API attach フローを使用した Twilio SIP 連携
78+ - 構造化 text / image メッセージを使った Web アプリケーションパターン
79+ - コマンドライン音声ループと再生処理
80+ - WebSocket 経由の Twilio Media Streams 統合
81+ - Realtime Calls API の attach フローを使った Twilio SIP 統合
8082
8183- ** [ reasoning_content] ( https://github.com/openai/openai-agents-python/tree/main/examples/reasoning_content ) :**
8284 reasoning content と structured outputs の扱い方を示すコード例です。
8385
8486- ** [ research_bot] ( https://github.com/openai/openai-agents-python/tree/main/examples/research_bot ) :**
85- 複雑なマルチエージェントリサーチワークフローを示す、シンプルな ディープリサーチ クローンです 。
87+ 複雑なマルチエージェント調査ワークフローを示す、シンプルなディープリサーチ clone です 。
8688
8789- ** [ tools] ( https://github.com/openai/openai-agents-python/tree/main/examples/tools ) :**
88- OAI hosted tools と、次のような実験的な Codex ツール機能の実装方法を学べます 。
90+ 次のような OpenAI がホストするツールと実験的な Codex tooling の実装方法を学べます 。
8991
9092 - Web 検索 とフィルター付き Web 検索
9193 - ファイル検索
92- - Code interpreter
93- - インラインスキル付き hosted container shell ( ` examples/tools/container_shell_inline_skill.py ` )
94- - スキル参照付き hosted container shell ( ` examples/tools/container_shell_skill_reference.py ` )
95- - ローカルスキル付き local shell ( ` examples/tools/local_shell_skill.py ` )
96- - namespace と遅延ツールを使う tool search ( ` examples/tools/tool_search.py ` )
94+ - Code Interpreter
95+ - インラインスキル付き hosted container shell( ` examples/tools/container_shell_inline_skill.py ` )
96+ - スキル参照付き hosted container shell( ` examples/tools/container_shell_skill_reference.py ` )
97+ - ローカルスキル付き local shell( ` examples/tools/local_shell_skill.py ` )
98+ - namespace と deferred tools を使った tool search( ` examples/tools/tool_search.py ` )
9799 - コンピュータ操作
98100 - 画像生成
99- - 実験的な Codex ツールワークフロー ( ` examples/tools/codex.py ` )
100- - 実験的な Codex 同一スレッドワークフロー ( ` examples/tools/codex_same_thread.py ` )
101+ - 実験的な Codex ツールワークフロー( ` examples/tools/codex.py ` )
102+ - 実験的な Codex same-thread ワークフロー( ` examples/tools/codex_same_thread.py ` )
101103
102104- ** [ voice] ( https://github.com/openai/openai-agents-python/tree/main/examples/voice ) :**
103- ストリーミング音声のコード例を含む、 TTS と STT モデルを使用した音声エージェントのコード例をご覧ください 。
105+ ストリーミング音声のコード例を含む、TTS / STT モデルを使った音声エージェントのコード例をご覧ください 。
0 commit comments