Uses of Class
dev.langchain4j.service.tool.ToolExecution
Packages that use ToolExecution
Package
Description
-
Uses of ToolExecution in dev.langchain4j.agentic.observability
Methods in dev.langchain4j.agentic.observability that return ToolExecutionModifier and TypeMethodDescriptionAfterAgentToolExecution.toolExecution()Returns the value of thetoolExecutionrecord component.Methods in dev.langchain4j.agentic.observability that return types with arguments of type ToolExecutionMethods in dev.langchain4j.agentic.observability with parameters of type ToolExecutionModifier and TypeMethodDescriptionstatic voidListenerNotifierUtil.afterAgentToolExecution(AgentListener listener, AgentInstance agent, ToolExecution toolExecution) Constructors in dev.langchain4j.agentic.observability with parameters of type ToolExecutionModifierConstructorDescriptionAfterAgentToolExecution(AgentInstance agentInstance, ToolExecution toolExecution) Creates an instance of aAfterAgentToolExecutionrecord class. -
Uses of ToolExecution in dev.langchain4j.agentic.scope
Methods in dev.langchain4j.agentic.scope with parameters of type ToolExecutionModifier and TypeMethodDescriptionvoidDefaultAgenticScope.registerCompensableExecution(ToolExecution toolExecution, Consumer<ToolExecution> compensatingAction) Method parameters in dev.langchain4j.agentic.scope with type arguments of type ToolExecutionModifier and TypeMethodDescriptionvoidDefaultAgenticScope.registerCompensableExecution(ToolExecution toolExecution, Consumer<ToolExecution> compensatingAction) -
Uses of ToolExecution in dev.langchain4j.service
Methods in dev.langchain4j.service that return ToolExecutionModifier and TypeMethodDescriptionAiServiceStreamingEvent.AfterToolExecutionEvent.toolExecution()AiServiceStreamingEvent.ToolCompensatedEvent.toolExecution()Methods in dev.langchain4j.service that return types with arguments of type ToolExecutionModifier and TypeMethodDescriptionResult.toolExecutions()Returns all tool executions that happened during AI Service invocation.Method parameters in dev.langchain4j.service with type arguments of type ToolExecutionModifier and TypeMethodDescriptionAiServices.afterToolExecution(Consumer<ToolExecution> afterToolExecution) Configures a callback to be invoked after each tool execution.AiServiceTokenStream.onToolExecuted(Consumer<ToolExecution> toolExecutionHandler) TokenStream.onToolExecuted(Consumer<ToolExecution> toolExecuteHandler) The provided consumer will be invoked right after a tool is executed.Result.ResultBuilder.toolExecutions(List<ToolExecution> toolExecutions) Constructors in dev.langchain4j.service with parameters of type ToolExecutionModifierConstructorDescriptionAfterToolExecutionEvent(ToolExecution toolExecution, InvocationContext invocationContext) ToolCompensatedEvent(ToolExecution toolExecution, CompensationReason reason, InvocationContext invocationContext) Deprecated, for removal: This API element is subject to removal in a future version.ToolCompensatedEvent(ToolExecution toolExecution, CompensationReason reason, @Nullable Throwable compensationError, InvocationContext invocationContext) -
Uses of ToolExecution in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ToolExecutionModifier and TypeMethodDescriptionToolExecution.Builder.build()ToolService.CompensableToolExecution.guardedExecution()Returns the value of theguardedExecutionrecord component.ToolService.CompensableToolExecution.toolExecution()Returns the value of thetoolExecutionrecord component.Methods in dev.langchain4j.service.tool that return types with arguments of type ToolExecutionModifier and TypeMethodDescriptionToolService.afterToolExecution()ToolServiceResult.toolExecutions()Method parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutionModifier and TypeMethodDescriptionvoidToolService.afterToolExecution(Consumer<ToolExecution> afterToolExecution) voidToolService.onCompensableToolExecution(BiConsumer<ToolExecution, Consumer<ToolExecution>> onCompensableToolExecution) voidToolService.onCompensableToolExecution(BiConsumer<ToolExecution, Consumer<ToolExecution>> onCompensableToolExecution) ToolService.processToolResults(AiServiceContext context, ToolExecutionRound.Outcome round, List<ToolExecution> toolExecutions, InvocationContext invocationContext, ToolServiceContext toolServiceContext) AsToolService.processToolResults(AiServiceContext, List, Map, List, InvocationContext, ToolServiceContext), for a completedToolExecutionRound, whose calls may have gone through tool guardrails: a compensable tool is exposed for cross-agent compensation when it ran successfully, whatever its output guardrails made of the result, and with the result it ran with.ToolServiceResult.Builder.toolExecutions(List<ToolExecution> toolExecutions) Constructors in dev.langchain4j.service.tool with parameters of type ToolExecutionModifierConstructorDescriptionCompensableToolExecution(ToolExecution toolExecution, ToolExecution guardedExecution, ToolExecutionResultMessage resultMessage, UnaryOperator<List<Content>> resultContentsForLlm) Creates an instance of aCompensableToolExecutionrecord class.Constructor parameters in dev.langchain4j.service.tool with type arguments of type ToolExecutionModifierConstructorDescriptionToolServiceResult(ChatResponse chatResponse, List<ToolExecution> toolExecutions) Deprecated.Please useToolServiceResult(Builder)instead -
Uses of ToolExecution in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return types with arguments of type ToolExecutionModifier and TypeMethodDescriptionAiServiceInvocation.toolExecutions()Returns the executed tools, in the order of execution, also those whose execution failed (seeToolExecution.hasFailed()).org.assertj.core.api.ListAssert<ToolExecution> AiServiceInvocationAssert.toolExecutions()Returns assertions on the tool executions, in the order of execution.
ToolCompensatedEvent(ToolExecution, CompensationReason, Throwable, InvocationContext)instead, which reports whether the compensating action failed.