AgentSdkAgentLoop class final
Claude Code running its own agent loop for a request: its tools, its MCP servers and its turns, under a permission posture.
Constructors
- AgentSdkAgentLoop({int? maxTurns, String permissionMode = 'default'})
-
const
-
AgentSdkAgentLoop.fromMap(Map<
String, Object?> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTurns → int?
-
The most turns Claude Code may take, or null for the SDK's default.
final
- permissionMode → String
-
The SDK's permission mode, as its wire string (
default,acceptEdits,bypassPermissions,plan,dontAsk,auto).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited