AgentsClient constructor
AgentsClient({
- required RoomClient room,
Implementation
AgentsClient({required this.room}) {
room.protocol.addHandler("agent.tool_call_response_chunk", _handleToolCallResponseChunk);
unawaited(
room.protocol.done.then((error) {
final wrapped = error == null
? RoomServerException("room client was closed before tool call completed")
: RoomServerException("room client closed with error: $error");
_failToolCallStreams(error: wrapped);
}),
);
}