PlainTextToolCallBlock class

A tool-call recovered from plain-text model output.

Returned by PlainTextToolCallParser.parse. The block keeps both the structured payload (name + arguments) and the raw substring it came from, so callers can either send it down a normal tool-execution path or strip it from the user-visible content with PlainTextToolCallParser.strip.

Constructors

PlainTextToolCallBlock({required String name, required Map<String, Object?> arguments, required int start, required int end, required String raw, required PlainTextToolCallFormat format})
const

Properties

arguments Map<String, Object?>
Arguments object. Always a Map<String, Object?> (never a list / scalar).
final
end int
Exclusive end index in the original text.
final
format PlainTextToolCallFormat
Which detector matched this block (debug aid).
final
hashCode int
The hash code for this object.
no setterinherited
name String
Tool name, exactly as the model emitted it.
final
raw String
The raw substring text.substring(start, end) — useful for diagnostics.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
Inclusive start index in the original text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited