ToolLoopResult

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

Result of executing an Embabel tool loop.

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val result: O
Link copied to clipboard
Link copied to clipboard
val totalUsage: Usage? = null