Agent Setup and Tool Definition

planning|implementationChallenge

Prompt Content

Initialize your OpenAI Assistant using the OpenAI Agents SDK and the `openai-o3` model. Define a set of custom tools (functions) that the agent can use to interact with a simulated hospitality system. Examples: `get_room_availability(date, room_type)`, `book_room(guest_id, room_type, date)`, `request_housekeeping(room_number, service_type)`. Provide Python class definitions for these tools and register them with your assistant.

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