Demonstrations of various OpenAI agent tools integrated with Temporal workflows.
Adapted from OpenAI Agents SDK tools examples
Before running these examples, be sure to review the prerequisites and background on the integration.
Create a vector store with sample documents for file search testing:
uv run openai_agents/tools/setup_knowledge_base.pyThis script:
- Creates 6 sample documents
- Uploads files to OpenAI with proper cleanup using context managers
- Creates an assistant with vector store for file search capabilities
- Updates workflow files with the new vector store ID automatically
First, start the worker (supports all tools):
uv run openai_agents/tools/run_worker.pyThen run individual examples in separate terminals:
Execute Python code for mathematical calculations and data analysis:
uv run openai_agents/tools/run_code_interpreter_workflow.pySearch through uploaded documents using vector similarity:
uv run openai_agents/tools/run_file_search_workflow.pyGenerate images:
uv run openai_agents/tools/run_image_generator_workflow.pySearch the web for current information with location context:
uv run openai_agents/tools/run_web_search_workflow.pyThe following tools from the reference repository are not included in this Temporal adaptation:
- Computer Use: Complex browser automation not suitable for distributed systems implementation.