Agent Setup and Tool Definition

implementationChallenge

Prompt Content

Initialize your OpenAI agent using the **OpenAI Agents SDK**. Define at least two custom tools: one for fetching real-time stock data from Alpha Vantage (`get_stock_info(symbol: str)`) and another for fetching company news (`get_company_news(company_name: str)`). Provide the Python code for defining these tools and for initializing the agent with **GPT-4o**.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations