StepFinishEvent
StepFinishEvent =
object
Defined in: src/lib/chat/toolLoop.ts:81
Information emitted after each tool execution round completes.
Properties
content
content:
string
Defined in: src/lib/chat/toolLoop.ts:85
Text content the model produced in this round (may be empty if the model only called tools).
stepIndex
stepIndex:
number
Defined in: src/lib/chat/toolLoop.ts:83
1-based index of this tool round.
toolCalls
toolCalls:
object[]
Defined in: src/lib/chat/toolLoop.ts:87
Tool calls the model made in this round.
arguments
arguments:
string
name
name:
string
toolResults
toolResults:
object[]
Defined in: src/lib/chat/toolLoop.ts:89
Results from auto-executed tools in this round.
error?
optionalerror:string
errorType?
optionalerrorType:ToolExecutionErrorType
name
name:
string
result
result:
unknown
usage
usage:
object
Defined in: src/lib/chat/toolLoop.ts:96
Token usage for this round, if available.
inputTokens?
optionalinputTokens:number
outputTokens?
optionaloutputTokens:number