TtsrScope class final
The streams a rule monitors (omp's parsed TtsrScope).
Parsed from scope tokens: text, thinking, tool/toolcall (any
tool), tool:<name> or a bare <name> (that tool only). omp's
tool(name)(pathGlob) path scoping is not ported. The default scope
(omp's DEFAULT_SCOPE) watches text and all tools but not thinking.
Constructors
Properties
- allowAnyTool → bool
-
Whether every tool's argument stream is matched.
final
- allowText → bool
-
Whether assistant prose is matched.
final
- allowThinking → bool
-
Whether thinking deltas are matched.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReachable → bool
-
Whether any stream can match (omp's
hasReachableScope).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toolNames
→ Set<
String> -
Named tools whose argument streams are matched (lower-case), used when
allowAnyTool is false.
final
Methods
-
matches(
TtsrMatchContext context) → bool -
Whether this scope admits
context(omp'smatchesScope). -
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
Static Methods
Constants
- defaultScope → const TtsrScope
- omp's default scope when a rule declares none.