TaskRunner class abstract
Dart port of the Python TaskRunner.
- Inheritance
-
- Object
- Agent
- SingleRoomAgent
- TaskRunner
Constructors
Properties
-
annotations
→ List<
String> ? -
no setter
- description → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputSchema
→ Map<
String, dynamic> -
no setter
-
labels
→ List<
String> -
no setterinherited
- name → String
-
no setterinherited
-
outputSchema
→ Map<
String, dynamic> ? -
no setter
-
requires
→ List<
Requirement> -
no setterinherited
- room → RoomClient
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsTools → bool
-
no setter
- title → String
-
no setterinherited
Methods
-
ask(
{required TaskContext context, required Map< String, dynamic> arguments}) → Future<Map< String, dynamic> > - Implement this in your concrete agent.
-
getRequiredToolkits(
ToolContext context) → Future< List< Toolkit> > -
inherited
-
getToolkits(
ToolContext context, List< RequiredToolkit> remoteToolkits) → Future<List< Toolkit> > -
inherited
-
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.inherited -
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> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validateArguments(
Map< String, dynamic> arguments) → Future<void> -
validateResponse(
Map< String, dynamic> response) → Future<void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited