0

Built-in Tools Agent

awesome-llm-apps3_2_builtin_tools

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

  1. Install OpenAI Agents SDK:

    pip install openai-agents
    
  2. Set up environment:

    cp ../env.example .env
    # Edit .env and add your OpenAI API key
    
  3. 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

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)