ExAgent. Message. Part. ToolReturn
(ExAgent v2.2.1)
View Source
The return value of a tool call, fed back to the model.
usage is an optional contributed token usage (e.g. from a delegated
sub-agent run) that the agent loop merges into the run's accumulated
usage. It is nil for ordinary tools and is not part of the serialized
message history (usage is accounted for at runtime).
payload_omitted distinguishes an omitted value from a genuine nil result.
Status describes the effect even when its payload was omitted. Such history
is diagnostic and cannot be executed as ordinary model context.
Summary
Types
@type status() ::
:succeeded | :validation_error | :denied | :failed | :unknown | :not_executed