Tools
Tool Context
Meshagent tools are passed a ToolContext which contains a variety of information that may be of use to the tool:
Property | Description |
---|---|
room | a room client that can be used to interact with the room or other participants in the room |
caller | the participant who called the tool |
on_behalf_of | if the tool was called by an agent that was acting on behalf of a user, the participant who invoked the agent |
caller_context | an optional dictionary of caller specific context data, this can be used to provide custom context data to the tool. For instance, this can be used for allowing agent based tools to receive the current chat context for implementing patterns such as handoffs. |