Interface ToolExecutionRound.Outcome
- Enclosing class:
ToolExecutionRound
public static sealed interface ToolExecutionRound.Outcome
A completed round: the calls as they were executed, in the order of the LLM, the result of each call, and the
first failure of a call, if any. Pass it to the
ToolService methods that take one: they handle the calls
by position, so two calls executed with equal requests keep their own results, and what they need besides the
results to compensate the round is kept internal.- Since:
- 1.25.0
-
Method Details
-
requests
List<ToolExecutionRequest> requests()The calls as they were executed, in the order of the LLM. -
results
Map<ToolExecutionRequest, ToolExecutionResult> results()The result of each call, by the call as it was executed. Of calls executed with equal requests, only the first one is in the map: use theToolServicemethods that take the outcome to handle every call. -
firstError
-