KernelToolResult class

Result of one tool dispatch. Shape mirrors the MCP CallToolResult envelope (content array + optional isError flag) but is library- independent.

Constructors

KernelToolResult({required List<KernelContent> content, bool? isError})

Properties

content → List<KernelContent>
Content items returned to the caller. Most calls return a single KernelTextContent carrying the JSON-encoded result; richer results (images, structured payloads) use additional entries.
final
hashCode → int
The hash code for this object.
no setterinherited
isError → bool?
true when the tool reported failure. The kernel uses this to surface in-process errors uniformly across in-process and transport-bound dispatch paths.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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