Creates a new BotAgent instance
Agent manifest
Get current conversation state
Get current context events
Check if agent currently has the floor
Get the agent's manifest
Get the agent's service URL from the manifest
Get the agent's speaker URI from the manifest
Grant the floor to a specific agent
URI of agent to grant floor to
Optional
reason: stringOptional reason for granting floor
GrantFloorEvent that can be sent
Invite an agent to join the conversation
Service URL of agent to invite
Optional
speakerUri: stringOptional specific speaker URI
Optional
reason: stringOptional reason for invitation
InviteEvent that can be sent
Remove an event handler
Type of event
Handler function to remove
Add an event handler for a specific event type
Type of event to handle
Handler function
Revoke the floor from a specific agent
URI of agent to revoke floor from
Optional
reason: stringReason for revoking floor (should include reason token)
RevokeFloorEvent that can be sent
Uninvite an agent from the conversation
URI of agent to uninvite
Optional
reason: stringReason for uninviting (should include reason token)
UninviteEvent that can be sent
Convener agent with special privileges for managing multi-party conversations Extends BotAgent with floor management capabilities
Example