Skip to main content
Loading navigation
Back to prompt library

Agent Setup and Tool Definition

Linked challenge: Intelligent Hospitality Agent for Personalized Guest Services

Prompt source

planning|implementation1 lines1 sectionsNo variables0 checklist items
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.