This pull request improves the translation pipeline, which was introduced by #460. Now the document generation works pretty well with gpt-4o model.
40 lines
No EOL
2.4 KiB
Markdown
40 lines
No EOL
2.4 KiB
Markdown
# サンプルコード
|
|
|
|
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):**
|
|
OpenAI 以外のモデルを SDK で使用する方法を探ります。
|
|
|
|
- **[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):**
|
|
実際のアプリケーションを示す、さらに詳細な2つの例
|
|
|
|
- **customer_service**: 航空会社向けのカスタマーサービスシステムの例。
|
|
- **research_bot**: シンプルなディープリサーチクローン。
|
|
|
|
- **[voice](https://github.com/openai/openai-agents-python/tree/main/examples/voice):**
|
|
TTS と STT モデルを使用した音声エージェントの例を見てみましょう。 |