Package com.embabel.agent.spi.loop
Class ToolLoopResult
-
- All Implemented Interfaces:
public final class ToolLoopResult<O extends Object>Result of executing an Embabel tool loop.
-
-
Field Summary
Fields Modifier and Type Field Description private final Oresultprivate final List<Message>conversationHistoryprivate final IntegertotalIterationsprivate final List<Tool>injectedToolsprivate final List<Tool>removedToolsprivate final UsagetotalUsageprivate final BooleanreplanRequestedprivate final StringreplanReasonprivate final BlackboardUpdaterblackboardUpdater
-
Method Summary
Modifier and Type Method Description final OgetResult()final List<Message>getConversationHistory()final IntegergetTotalIterations()final List<Tool>getInjectedTools()final List<Tool>getRemovedTools()final UsagegetTotalUsage()final BooleangetReplanRequested()final StringgetReplanReason()final BlackboardUpdatergetBlackboardUpdater()-
-
Constructor Detail
-
ToolLoopResult
ToolLoopResult(O result, List<Message> conversationHistory, Integer totalIterations, List<Tool> injectedTools, List<Tool> removedTools, Usage totalUsage, Boolean replanRequested, String replanReason, BlackboardUpdater blackboardUpdater)
- Parameters:
result- The parsed resultconversationHistory- Full conversation history including tool callstotalIterations- Number of LLM inference iterationsinjectedTools- All tools added during the conversation via injection strategiesremovedTools- All tools removed during the conversation via injection strategiestotalUsage- Accumulated usage across all LLM calls in the loopreplanRequested- True if the loop terminated due to a tool requesting replanningreplanReason- Human-readable explanation of why replan was requestedblackboardUpdater- Callback to update the blackboard before replanning
-
-
Method Detail
-
getConversationHistory
final List<Message> getConversationHistory()
-
getTotalIterations
final Integer getTotalIterations()
-
getInjectedTools
final List<Tool> getInjectedTools()
-
getRemovedTools
final List<Tool> getRemovedTools()
-
getTotalUsage
final Usage getTotalUsage()
-
getReplanRequested
final Boolean getReplanRequested()
-
getReplanReason
final String getReplanReason()
-
getBlackboardUpdater
final BlackboardUpdater getBlackboardUpdater()
-
-
-
-