Demonstrates using OpenAI Agents SDK built-in tools like WebSearchTool and CodeInterpreterTool.
Sign in to save downloads to your library and vote.
Preview
Built-in Tools Agent
Demonstrates using OpenAI Agents SDK built-in tools like WebSearchTool and CodeInterpreterTool.
๐ฏ What This Demonstrates
- WebSearchTool: Real-time web search capabilities
- CodeInterpreterTool: Code execution and mathematical computation
- Built-in Tool Integration: Using pre-configured SDK tools
- Tool Combination: Leveraging multiple tools in one agent
๐ Quick Start
-
Install OpenAI Agents SDK:
pip install openai-agents -
Set up environment:
cp ../env.example .env # Edit .env and add your OpenAI API key -
Run the agent:
from agents import Runner from agent import root_agent result = Runner.run_sync(root_agent, "What's the latest news about AI and calculate 15% of 200?") print(result.final_output)
๐ก Key Concepts
- WebSearchTool(): Search the web for current information
- CodeInterpreterTool(): Execute Python code and calculations
- Tool Instantiation: Creating tool instances with default configurations
- Multi-tool Agents: Combining different tool types
๐งช Available Tools
WebSearchTool
- Search for current information on the internet
- Useful for factual questions requiring recent data
- Automatically formats search results for agent use
CodeInterpreterTool
- Execute Python code in a secure environment
- Perfect for mathematical calculations
- Can handle data analysis and complex computations
๐ Next Steps
- Function Tools - Custom function tools
- Agents as Tools - Advanced orchestration patterns
Ingestion metadata
- Source catalog
- awesome-llm-apps
- Repository
- Shubhamsaboo/awesome-llm-apps ยท main
- File path
- ai_agent_framework_crash_course/openai_sdk_crash_course/3_tool_using_agent/3_2_builtin_tools/README.md
- Last refreshed
- 10/24/2026, 3:00:14 AM (5h ago)
- Refresh schedule
- Daily ยท 03:00 UTC
- Dedupe status
- Unique ยท deduped by (source, url)