openai-agents-python/docs/ja/examples.md
2025-04-08 09:41:48 -04:00

40 lines
No EOL
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# コード例
SDK のさまざまな実装サンプルについては、[リポジトリ](https://github.com/openai/openai-agents-python/tree/main/examples) のコード例セクションをご覧ください。コード例は、異なるパターンや機能を示す複数のカテゴリに分類されています。
## カテゴリ
- **[agent_patterns](https://github.com/openai/openai-agents-python/tree/main/examples/agent_patterns)**
このカテゴリのコード例では、一般的なエージェント設計パターンを示しています。例えば、
- 決定論的ワークフロー
- ツールとしてのエージェント
- エージェントの並列実行
- **[basic](https://github.com/openai/openai-agents-python/tree/main/examples/basic)**
SDK の基本的な機能を示すコード例です。例えば、
- 動的なシステムプロンプト
- ストリーミング出力
- ライフサイクルイベント
- **[tool examples](https://github.com/openai/openai-agents-python/tree/main/examples/tools)**
Web 検索やファイル検索などの OpenAI がホストするツールの実装方法と、それらをエージェントに統合する方法を学べます。
- **[model providers](https://github.com/openai/openai-agents-python/tree/main/examples/model_providers)**
SDK で OpenAI 以外のモデルを使用する方法を確認できます。
- **[handoffs](https://github.com/openai/openai-agents-python/tree/main/examples/handoffs)**
エージェントのハンドオフに関する実践的なコード例を参照できます。
- **[mcp](https://github.com/openai/openai-agents-python/tree/main/examples/mcp)**
MCP を使用したエージェントの構築方法を学べます。
- **[customer_service](https://github.com/openai/openai-agents-python/tree/main/examples/customer_service)** および **[research_bot](https://github.com/openai/openai-agents-python/tree/main/examples/research_bot)**
実際のアプリケーションを示す、より具体的なコード例です。
- **customer_service**:航空会社向けのカスタマーサービスシステムのコード例。
- **research_bot**:シンプルな詳細調査クローンのコード例。
- **[voice](https://github.com/openai/openai-agents-python/tree/main/examples/voice)**
TTS および STT モデルを使用した音声エージェントのコード例を参照できます。