Uses of Class
dev.langchain4j.service.tool.ToolServiceContext
Packages that use ToolServiceContext
Package
Description
-
Uses of ToolServiceContext in dev.langchain4j.service
Methods in dev.langchain4j.service that return ToolServiceContextMethods in dev.langchain4j.service with parameters of type ToolServiceContextModifier and TypeMethodDescriptionAiServiceTokenStreamParameters.Builder.toolServiceContext(ToolServiceContext toolServiceContext) Sets the tool service context. -
Uses of ToolServiceContext in dev.langchain4j.service.tool
Subclasses of ToolServiceContext in dev.langchain4j.service.toolMethods in dev.langchain4j.service.tool that return ToolServiceContextModifier and TypeMethodDescriptionToolServiceContext.Builder.build()ToolService.createContext(InvocationContext invocationContext, UserMessage userMessage, List<ChatMessage> messages) static ToolServiceContextToolService.refreshDynamicProviders(ToolServiceContext toolServiceContext, List<ChatMessage> messages, InvocationContext invocationContext) Re-evaluates dynamic tool providers and returns an updatedToolServiceContextwith any newly provided tool specifications and executors.Methods in dev.langchain4j.service.tool with parameters of type ToolServiceContextModifier and TypeMethodDescriptionToolService.executeInferenceAndToolsLoop(AiServiceContext context, Object memoryId, ChatResponse chatResponse, ChatRequestParameters parameters, List<ChatMessage> messages, ChatMemory chatMemory, InvocationContext invocationContext, ToolServiceContext toolServiceContext, boolean isReturnTypeResult) static ToolServiceContextToolService.refreshDynamicProviders(ToolServiceContext toolServiceContext, List<ChatMessage> messages, InvocationContext invocationContext) Re-evaluates dynamic tool providers and returns an updatedToolServiceContextwith any newly provided tool specifications and executors. -
Uses of ToolServiceContext in dev.langchain4j.service.tool.search
Methods in dev.langchain4j.service.tool.search that return ToolServiceContextModifier and TypeMethodDescriptionstatic ToolServiceContextToolSearchService.addFoundTools(ToolServiceContext toolServiceContext, Collection<ToolExecutionResult> toolResults) ToolSearchService.adjust(ToolServiceContext toolServiceContext, List<ChatMessage> messages, InvocationContext invocationContext) Methods in dev.langchain4j.service.tool.search with parameters of type ToolServiceContextModifier and TypeMethodDescriptionstatic ToolServiceContextToolSearchService.addFoundTools(ToolServiceContext toolServiceContext, Collection<ToolExecutionResult> toolResults) ToolSearchService.adjust(ToolServiceContext toolServiceContext, List<ChatMessage> messages, InvocationContext invocationContext)