Uniform tool result (SPEC §1). metadata.pending carrying a Request = suspension (§10).
parts carries non-text output (SPEC §1B) — an image, a PDF, an audio clip. output
stays required and remains what the transcript, compaction, token estimation and any
text-only provider see; a result setting no parts is byte-identical to pre-0.17.
Summary
Functions
Convenience: an error result with the given text.
Convenience: a success result with the given text.
True when this result is a §10 suspension (metadata.pending is a Request).
Types
@type t() :: %Toolnexus.ToolResult{ is_error: boolean(), metadata: map() | nil, output: String.t(), parts: [Toolnexus.ContentPart.t()] | nil }
Functions
Convenience: an error result with the given text.
Convenience: a success result with the given text.
True when this result is a §10 suspension (metadata.pending is a Request).