invokeTool method

Future<Response> invokeTool({
  1. required String toolkit,
  2. required String tool,
  3. required Map<String, dynamic> arguments,
  4. String? participantId,
  5. String? onBehalfOfId,
  6. Uint8List? attachment,
})

Implementation

Future<Response> invokeTool({
  required String toolkit,
  required String tool,
  required Map<String, dynamic> arguments,
  String? participantId,
  String? onBehalfOfId,
  Uint8List? attachment,
}) async {
  return await room.sendRequest("agent.invoke_tool", {
    "toolkit": toolkit,
    "tool": tool,
    "arguments": arguments,
    "participant_id": participantId,
    "on_behalf_of_id": onBehalfOfId,
  }, data: attachment);
}