Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 61 additions & 59 deletions docs/ja/agents.md

Large diffs are not rendered by default.

72 changes: 37 additions & 35 deletions docs/ja/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,59 @@ search:
---
# コード例

[repo](https://github.com/openai/openai-agents-python/tree/main/examples) の examples セクションで、SDK のさまざまなサンプル実装をご覧いただけます。examples は、異なるパターンと機能を示す複数のカテゴリーに整理されています。
[repo](https://github.com/openai/openai-agents-python/tree/main/examples) の examples セクションで、 SDK のさまざまなサンプル実装をご確認ください。examples は、異なるパターンと機能を示す複数のカテゴリーに整理されています。

## カテゴリー

- **[agent_patterns](https://github.com/openai/openai-agents-python/tree/main/examples/agent_patterns):**
このカテゴリーのコード例では、次のような一般的なエージェント設計パターンを紹介しています
このカテゴリーのコード例では、一般的なエージェント設計パターンを示しています。たとえば次のとおりです

- 決定論的ワークフロー
- Agents as tools
- 並列エージェント実行
- エージェントの並列実行
- 条件付きツール使用
- 入力 / 出力ガードレール
- 判定者としての LLM
- 入出力ガードレール
- 審判としての LLM
- ルーティング
- ストリーミングガードレール
- 承認フロー向けのカスタム拒否メッセージ (`examples/agent_patterns/human_in_the_loop_custom_rejection.py`)

- **[basic](https://github.com/openai/openai-agents-python/tree/main/examples/basic):**
これらのコード例では、次のような SDK の基本機能を紹介しています
これらのコード例では、 SDK の基本的な機能を紹介しています。たとえば次のとおりです

- Hello World のコード例デフォルトモデル、GPT-5、open-weight model)
- Hello World のコード例 (デフォルトモデル、 GPT-5、オープンウェイトモデル)
- エージェントライフサイクル管理
- 動的システムプロンプト
- ストリーミング出力(text、items、function call args)
- ターン間で共有セッションヘルパーを使う Responses websocket transport`examples/basic/stream_ws.py`
- ストリーミング出力 (テキスト、項目、関数呼び出し引数)
- ターン間で共有セッションヘルパーを使用する Responses websocket transport (`examples/basic/stream_ws.py`)
- プロンプトテンプレート
- ファイル処理(ローカル / リモート、画像 / PDF
- 使用状況追跡
- Runner 管理の retry 設定(`examples/basic/retry.py`
- LiteLLM を使った Runner 管理の retry(`examples/basic/retry_litellm.py`
- ファイル処理 (ローカルおよびリモート、画像および PDF)
- 使用状況トラッキング
- Runner 管理の再試行設定 (`examples/basic/retry.py`)
- LiteLLM を使用した Runner 管理の再試行 (`examples/basic/retry_litellm.py`)
- 非 strict な出力型
- 前回 response ID の使用
- 以前のレスポンス ID の使用

- **[customer_service](https://github.com/openai/openai-agents-python/tree/main/examples/customer_service):**
航空会社向けのカスタマーサービスシステムのコード例です。

- **[financial_research_agent](https://github.com/openai/openai-agents-python/tree/main/examples/financial_research_agent):**
金融データ分析のためのエージェントとツールを使った構造化された調査ワークフローを示す、financial research agent です
金融データ分析向けに、エージェントとツールを使った構造化リサーチワークフローを示す金融リサーチエージェントです

- **[handoffs](https://github.com/openai/openai-agents-python/tree/main/examples/handoffs):**
メッセージフィルタリングを用いたエージェントのハンドオフの実践的なコード例をご覧ください
メッセージフィルタリングを使ったエージェントハンドオフの実践的なコード例をご覧ください

- **[hosted_mcp](https://github.com/openai/openai-agents-python/tree/main/examples/hosted_mcp):**
hosted MCPModel context protocolコネクタと承認の使い方を示すコード例です。
ホストされた MCP (Model context protocol) コネクタと承認の使い方を示すコード例です。

- **[mcp](https://github.com/openai/openai-agents-python/tree/main/examples/mcp):**
MCPModel context protocolを使ってエージェントを構築する方法を学べます。内容は次のとおりです。
MCP (Model context protocol) を使ってエージェントを構築する方法を学べます。内容は次のとおりです。

- Filesystem のコード例
- ファイルシステムのコード例
- Git のコード例
- MCP prompt server のコード例
- SSEServer-Sent Eventsのコード例
- Streamable HTTP のコード例
- MCP プロンプトサーバーのコード例
- SSE (Server-Sent Events) のコード例
- ストリーム可能な HTTP のコード例

- **[memory](https://github.com/openai/openai-agents-python/tree/main/examples/memory):**
エージェント向けのさまざまなメモリ実装のコード例です。内容は次のとおりです。
Expand All @@ -68,38 +69,39 @@ search:
- 暗号化セッションストレージ
- OpenAI Conversations セッションストレージ
- Responses compaction セッションストレージ
- `ModelSettings(store=False)` を使ったステートレスな Responses compaction (`examples/memory/compaction_session_stateless_example.py`)

- **[model_providers](https://github.com/openai/openai-agents-python/tree/main/examples/model_providers):**
カスタムプロバイダーや LiteLLM 統合を含め、SDK で非 OpenAI モデルを使う方法を紹介します
カスタムプロバイダーや LiteLLM 統合を含め、 SDK で非 OpenAI モデルを使う方法を確認できます

- **[realtime](https://github.com/openai/openai-agents-python/tree/main/examples/realtime):**
SDK を使ってリアルタイム体験を構築する方法を示すコード例です。内容は次のとおりです。
SDK を使用してリアルタイム体験を構築する方法を示すコード例です。内容は次のとおりです。

- 構造化 text / image メッセージを使った Web アプリケーションパターン
- 構造化テキストと画像メッセージを使う Web アプリケーションパターン
- コマンドライン音声ループと再生処理
- WebSocket 経由の Twilio Media Streams 統合
- Realtime Calls API の attach フローを使った Twilio SIP 統合
- Realtime Calls API のアタッチフローを使う Twilio SIP 統合

- **[reasoning_content](https://github.com/openai/openai-agents-python/tree/main/examples/reasoning_content):**
reasoning content と structured outputs の扱い方を示すコード例です。

- **[research_bot](https://github.com/openai/openai-agents-python/tree/main/examples/research_bot):**
複雑なマルチエージェント調査ワークフローを示す、シンプルなディープリサーチ clone です
複雑なマルチエージェントのリサーチワークフローを示す、シンプルなディープリサーチクローンです

- **[tools](https://github.com/openai/openai-agents-python/tree/main/examples/tools):**
次のような OpenAI がホストするツールと実験的な Codex tooling の実装方法を学べます
次のような OpenAI がホストするツールと実験的な Codex ツール機能の実装方法を学べます

- Web 検索 とフィルター付き Web 検索
- ファイル検索
- Code Interpreter
- インラインスキル付き hosted container shell(`examples/tools/container_shell_inline_skill.py`
- スキル参照付き hosted container shell(`examples/tools/container_shell_skill_reference.py`
- ローカルスキル付き local shell(`examples/tools/local_shell_skill.py`
- namespace と deferred tools を使った tool search(`examples/tools/tool_search.py`
- インラインスキル付きホストコンテナーシェル (`examples/tools/container_shell_inline_skill.py`)
- スキル参照付きホストコンテナーシェル (`examples/tools/container_shell_skill_reference.py`)
- ローカルスキル付きローカルシェル (`examples/tools/local_shell_skill.py`)
- 名前空間と遅延ツールを使ったツール検索 (`examples/tools/tool_search.py`)
- コンピュータ操作
- 画像生成
- 実験的な Codex ツールワークフロー`examples/tools/codex.py`
- 実験的な Codex same-thread ワークフロー(`examples/tools/codex_same_thread.py`
- 実験的な Codex ツールワークフロー (`examples/tools/codex.py`)
- 実験的な Codex 同一スレッドワークフロー (`examples/tools/codex_same_thread.py`)

- **[voice](https://github.com/openai/openai-agents-python/tree/main/examples/voice):**
ストリーミング音声のコード例を含む、TTS / STT モデルを使った音声エージェントのコード例をご覧ください
ストリーミング音声のコード例を含む、 TTS および STT モデルを使用した音声エージェントのコード例をご覧ください
Loading