AgentDirective class
Typed directive consumed by zuraffa's AgentPlugin.
Zorphy emits a top-level const agentDirective = AgentDirective(...)
in the generated .zorphy.dart file when any agent annotation is
present on the abstract class. AgentPlugin scans for this const
via AST analysis.
When no agent annotations are present, no directive is emitted.
Constructors
-
AgentDirective({AgentToolDirective? tool, AgentRiskTier risk = AgentRiskTier.safe, bool exclude = false, bool internal = false, Map<
String, AgentParamDirective> params = const {}}) -
Creates an agent directive.
const
Properties
- exclude → bool
-
Whether the entity/usecase is excluded from tool generation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- internal → bool
-
Whether this is an internal (admin-only) entity/usecase.
final
-
params
→ Map<
String, AgentParamDirective> -
Per-field parameter descriptions, keyed by field name.
final
- risk → AgentRiskTier
-
Risk tier for the entity/usecase.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tool → AgentToolDirective?
-
Tool identity override (null when not annotated with @AgentTool).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited