SingleRoomAgent class abstract

A single-room-bound agent that knows how to install its requirements into the room (schemas/toolkits) and later resolve them into Toolkit /RemoteRoomTool instances.

This implements Portable so it can be used with your ServiceHost.

Inheritance
Implemented types
Implementers

Constructors

SingleRoomAgent({required String name, String? title, String? description, List<Requirement>? requires, List<String>? labels})

Properties

description → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
labels → List<String>
no setterinherited
name → String
no setterinherited
requires → List<Requirement>
no setterinherited
room → RoomClient
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
no setterinherited

Methods

getRequiredToolkits(ToolContext context) → Future<List<Toolkit>>
getToolkits(ToolContext context, List<RequiredToolkit> remoteToolkits) → Future<List<Toolkit>>
initRequirements(List<Requirement> requires) → void
Hook for subclasses to mutate/normalize requirements if needed.
inherited
installRequirements({String? participantId}) → Future<void>
Install RequiredToolkit / RequiredSchema into the room if missing, mirroring Python install_requirements.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({required RoomClient room}) → Future<void>
override
stop() → Future<void>
override
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited