AgentBehaviorConfig class
Behavioral limits for an agent's runtime loop.
Constructors
-
AgentBehaviorConfig({int? turnLimit, int? timeoutMs, int? maxRetries, bool? parallelTools, Map<
String, dynamic> options = const {}}) -
const
-
AgentBehaviorConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetries → int?
-
Retry count on transient failures.
null= host default.final -
options
→ Map<
String, dynamic> -
Free-form host-specific options.
final
- parallelTools → bool?
-
Whether to allow parallel tool calls in a single turn.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → int?
-
Per-turn timeout in milliseconds.
null= host default.final - turnLimit → int?
-
Maximum turns in a single conversation.
null= host default.final
Methods
-
copyWith(
{int? turnLimit, int? timeoutMs, int? maxRetries, bool? parallelTools, Map< String, dynamic> ? options}) → AgentBehaviorConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited