@openfloor/protocol - v0.0.4
    Preparing search index...

    Class FloorManager

    Floor manager agent implementation per specification Section 2.2 Manages multi-party conversations and event forwarding

    const floorManager = new FloorManager({
    identification: {
    speakerUri: 'tag:example.com,2025:floor-manager',
    serviceUrl: 'https://example.com/floor',
    organization: 'Example Corp',
    conversationalName: 'Floor Manager'
    }
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get activeConversants(): readonly string[]

      Get list of active conversant URIs

      Returns readonly string[]

    • get currentSpeaker(): null | string

      Get current speaker URI

      Returns null | string

    • get serviceUrl(): string

      Get the agent's service URL from the manifest

      Returns string

    • get speakerUri(): string

      Get the agent's speaker URI from the manifest

      Returns string

    Methods

    • Add a conversant to the active conversation

      Parameters

      • manifest: Manifest

        Conversant's manifest

      Returns void

    • Add an event handler for a specific event type

      Parameters

      • eventType: keyof AgentEventHandlers

        Type of event to handle

      • handler: (...args: any[]) => Promise<void>

        Handler function

      Returns void

    • Remove a conversant from the active conversation

      Parameters

      • speakerUri: string

        Speaker URI to remove

      Returns void