ToolLoopResult

constructor(result: O, conversationHistory: List<Message>, totalIterations: Int, injectedTools: List<Tool>, totalUsage: Usage? = null)

Parameters

O

The output type

result

The parsed result

conversationHistory

Full conversation history including tool calls

totalIterations

Number of LLM inference iterations

injectedTools

All tools added during the conversation via injection strategies

totalUsage

Accumulated usage across all LLM calls in the loop