PromptCommand class abstract
A command that sends a prompt to the LLM.
- Inheritance
- Implementers
Constructors
Properties
-
aliases
→ List<
String> -
Alternative names for the command.
no setterinherited
-
allowedTools
→ Set<
String> ? -
Tools the model is allowed to use.
no setter
- argumentHint → String?
-
Hint text for arguments.
no setterinherited
- description → String
-
User-visible description.
no setterinherited
- displayName → String
-
Human-facing display name.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- immediate → bool
-
Whether to execute immediately without waiting for stop point.
no setterinherited
- isEnabled → bool
-
Whether this command is enabled (feature flags, etc).
no setterinherited
- isHidden → bool
-
Whether this command is hidden from help/typeahead.
no setterinherited
- model → String?
-
Model override for this command.
no setter
- name → String
-
Command name (without the
/prefix).no setterinherited - progressMessage → String
-
Progress message shown during execution.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → CommandSource
-
Where this command was loaded from.
no setterinherited
- type → CommandType
-
Execution type.
no setteroverride
- whenToUse → String?
-
When to use this command (for skills discovery).
no setterinherited
Methods
-
getPrompt(
String args, ToolUseContext context) → Future< List< ContentBlock> > - Build the prompt content for this command.
-
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