Uses of Class
dev.langchain4j.service.tool.BeforeToolExecution
Packages that use BeforeToolExecution
Package
Description
-
Uses of BeforeToolExecution in dev.langchain4j.agentic.observability
Methods in dev.langchain4j.agentic.observability that return BeforeToolExecutionModifier and TypeMethodDescriptionBeforeAgentToolExecution.toolExecution()Returns the value of thetoolExecutionrecord component.Constructors in dev.langchain4j.agentic.observability with parameters of type BeforeToolExecutionModifierConstructorDescriptionBeforeAgentToolExecution(AgentInstance agentInstance, BeforeToolExecution toolExecution) Creates an instance of aBeforeAgentToolExecutionrecord class. -
Uses of BeforeToolExecution in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type BeforeToolExecutionModifier and TypeMethodDescriptionAiServices.beforeToolExecution(Consumer<BeforeToolExecution> beforeToolExecution) Configures a callback to be invoked before each tool execution.AiServiceTokenStream.beforeToolExecution(Consumer<BeforeToolExecution> beforeToolExecutionHandler) default TokenStreamTokenStream.beforeToolExecution(Consumer<BeforeToolExecution> beforeToolExecutionHandler) The provided consumer will be invoked right before a tool is executed. -
Uses of BeforeToolExecution in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return BeforeToolExecutionMethods in dev.langchain4j.service.tool that return types with arguments of type BeforeToolExecutionMethod parameters in dev.langchain4j.service.tool with type arguments of type BeforeToolExecutionModifier and TypeMethodDescriptionvoidToolService.beforeToolExecution(Consumer<BeforeToolExecution> beforeToolExecution) ToolService.executeTool(InvocationContext invocationContext, Map<String, ToolExecutor> toolExecutors, ToolExecutionRequest toolRequest, Consumer<BeforeToolExecution> externalBeforeToolExecution, Consumer<ToolExecution> externalAfterToolExecution)