ToolCallStatus

How far a ToolCallPart has got.

AWAITING_RESULT is the state a frontend tool sits in while the client executes it, and is also the state a backend tool sits in while the agent runs it. The protocol does not distinguish the two -- both are "the call is complete and no result has arrived" -- so neither does this.

AWAITING_APPROVAL is the one state the protocol does distinguish: the run ended with an interrupt naming this call, and nothing happens to it until the client answers. The interrupt itself -- the prompt, the answer's schema -- is on the run (RunState.Finished.interrupts), not here, because an interrupt need not name a call at all.

Entries

Link copied to clipboard

Arguments are still arriving; TOOL_CALL_END has not been seen.

Link copied to clipboard

Arguments are complete. No TOOL_CALL_RESULT has named this call yet.

Link copied to clipboard

The run stopped to ask whether this call may go ahead. Back to AWAITING_RESULT when the next run starts, whatever the answer was: an approved call's result arrives in that run, and a declined one is the producer's to report, or not.

Link copied to clipboard

A result arrived.

Link copied to clipboard

The client reported the call as failed. The protocol has no failure event of its own.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.