PermissionMode enum
Controls how tool executions are handled. Mirrors PermissionMode
(six values; default is spelled PermissionMode.default_ in Dart).
Values
- default_ → const PermissionMode
-
Prompt for dangerous operations (
default).const PermissionMode('default') - acceptEdits → const PermissionMode
-
Auto-accept file edits (
acceptEdits).const PermissionMode('acceptEdits') - bypassPermissions → const PermissionMode
-
Bypass all permission checks (
bypassPermissions).const PermissionMode('bypassPermissions') - plan → const PermissionMode
-
Planning mode, no tool execution (
plan).const PermissionMode('plan') - dontAsk → const PermissionMode
-
Deny anything not pre-approved (
dontAsk).const PermissionMode('dontAsk') - auto → const PermissionMode
-
Use a model classifier to approve/deny (
auto).const PermissionMode('auto')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wire → String
-
The SDK wire string for this mode.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - The SDK wire string (for embedding in JSON).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromWire(
String value) → PermissionMode - Parses an SDK wire string into a PermissionMode.
Constants
-
values
→ const List<
PermissionMode> - A constant List of the values in this enum, in order of their declaration.