Skip to content

This pull request introduces a new "real estate agent" scenario, expanding the application's agent capabilities with specialized agents for real estate use cases. It also improves the agent configuration structure to support this new scenario and makes minor code consistency updates. #3

@Gotradepal

Description

@Gotradepal

This pull request introduces a new "real estate agent" scenario, expanding the application's agent capabilities with specialized agents for real estate use cases. It also improves the agent configuration structure to support this new scenario and makes minor code consistency updates.

New Real Estate Agent Scenario

  • Added a new scenario realEstate with three specialized agents:
    • greeterAgent: Welcomes users and routes them to the appropriate service (sector info or appointment) (src/app/agentConfigs/real-estate-agent/greeter-agent.ts)
    • sectorInfoAgent: Provides detailed information about neighborhoods, including prices, amenities, and transport options, with tools for sector lookup and comparison (src/app/agentConfigs/real-estate-agent/sector-info-agent.ts)
    • appointmentAgent: Handles appointment scheduling, collects client info, checks availability, and books appointments via tools (src/app/agentConfigs/real-estate-agent/appointment-agent.ts)
  • Agents are interconnected for handoffs, enabling smooth transitions between greeting, information, and booking services (src/app/agentConfigs/real-estate-agent/index.ts)
  • Defined the company name for the real estate scenario (Grand Chasseral Immobilier Jura) in a dedicated constants file (src/app/agentConfigs/real-estate-agent/constants.ts)

Integration and Configuration Updates

  • Registered the new realEstateScenario in the global agent set registry and SDK scenario map, making it available throughout the app (src/app/agentConfigs/index.ts, src/app/App.tsx) [1] [2] [3] [4]
  • Updated the company name mapping logic to support the new scenario for moderation guardrails (src/app/App.tsx)

Code Consistency and Minor Improvements

  • Standardized string quoting and import styles in several agent config files for consistency (src/app/agentConfigs/chatSupervisor/index.ts, src/app/agentConfigs/simpleHandoff.ts) [1] [2] [3]
  • Added suppressHydrationWarning to the root HTML element to address potential hydration mismatches (src/app/layout.tsx)

Originally posted by @Kaherdin in openai/openai-realtime-agents#116

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions