AgentDefinition class

A programmatic sub-agent definition. Mirrors AgentDefinition.

Constructors

AgentDefinition({required String description, required String prompt, List<String>? tools, String? model, PermissionMode? permissionMode})
AgentDefinition.fromJson(Map<String, dynamic> json)
Parses from wire JSON.
factory

Properties

description → String
A description of when to use the agent.
final
hashCode → int
The hash code for this object.
no setterinherited
model → String?
The model the agent runs on.
final
permissionMode → PermissionMode?
The permission mode the agent runs under.
final
prompt → String
The agent's system prompt.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tools → List<String>?
The tool names the agent may use.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes to wire JSON.
toString() → String
A string representation of this object.
inherited

Operators

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