@langwatch/scenario
    Preparing search index...

    Interface RealtimeAgentAdapterConfig

    Configuration for RealtimeAgentAdapter

    interface RealtimeAgentAdapterConfig {
        agentName: string;
        responseTimeout?: number;
        role: AgentRole;
        session: RealtimeSession;
    }
    Index

    Properties

    agentName: string

    Name of the agent (for logging/identification)

    responseTimeout?: number

    Timeout for waiting for agent response (ms)

    30000
    
    role: AgentRole

    The role of the agent

    session: RealtimeSession

    A connected RealtimeSession instance

    The session should be created using your agent's session creator function and connected before passing to this adapter.

    const session = createVegetarianRecipeSession();
    await session.connect({ apiKey: process.env.OPENAI_API_KEY });
    const adapter = new RealtimeAgentAdapter({
    session,
    role: AgentRole.AGENT,
    agentName: "Vegetarian Recipe Assistant"
    });