PromptToolOptions class final
Options for promptToolStreamFunction.
Constructors
- PromptToolOptions({int maxBlockSize = 64 * 1024, bool injectWhenNoTools = false, PromptToolFormat format = PromptToolFormat.fencedJson, bool slim = false})
-
Creates prompt-tool options.
const
Properties
- format → PromptToolFormat
-
The wire format to inject and parse.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- injectWhenNoTools → bool
-
Whether to inject the tool instructions even when Context.tools is
empty. Default
false: with no tools the wrapper is a byte-identical passthrough.final - maxBlockSize → int
-
Maximum buffered size in characters of one
tool_callblock body. Overflowing blocks are emitted as plain text and parsing resumes in text mode.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slim → bool
-
On-device (small-context) mode: shorten each tool description to its
first line and strip verbose metadata from JSON schemas, shrinking the
tool-instruction block that is appended to the system prompt.
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