Uses of Class
dev.langchain4j.agent.tool.ToolSpecification
Packages that use ToolSpecification
Package
Description
-
Uses of ToolSpecification in dev.langchain4j.agent.tool
Methods in dev.langchain4j.agent.tool that return ToolSpecificationModifier and TypeMethodDescriptionToolSpecification.Builder.build()
Returns aToolSpecification
built from the parameters previously set.static ToolSpecification
ToolSpecifications.toolSpecificationFrom
(Method method) Returns theToolSpecification
for the given method annotated with @Tool
.Methods in dev.langchain4j.agent.tool that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic List
<ToolSpecification> ToolSpecifications.toolSpecificationsFrom
(Class<?> classWithTools) ReturnsToolSpecification
s for all methods annotated with @Tool
within the specified class.static List
<ToolSpecification> ToolSpecifications.toolSpecificationsFrom
(Object objectWithTools) ReturnsToolSpecification
s for all methods annotated with @Tool
within the class of the specified object.Method parameters in dev.langchain4j.agent.tool with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic void
ToolSpecifications.validateSpecifications
(List<ToolSpecification> toolSpecifications) Validates all theToolSpecification
s. -
Uses of ToolSpecification in dev.langchain4j.mcp.client
Methods in dev.langchain4j.mcp.client that return types with arguments of type ToolSpecification -
Uses of ToolSpecification in dev.langchain4j.model.anthropic.internal.mapper
Methods in dev.langchain4j.model.anthropic.internal.mapper with parameters of type ToolSpecificationModifier and TypeMethodDescriptionstatic AnthropicTool
AnthropicMapper.toAnthropicTool
(ToolSpecification toolSpecification, AnthropicCacheType cacheToolsPrompt) Method parameters in dev.langchain4j.model.anthropic.internal.mapper with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic List
<AnthropicTool> AnthropicMapper.toAnthropicTools
(List<ToolSpecification> toolSpecifications, AnthropicCacheType cacheToolsPrompt) -
Uses of ToolSpecification in dev.langchain4j.model.chat.listener
Methods in dev.langchain4j.model.chat.listener that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionChatModelRequest.toolSpecifications()
Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in dev.langchain4j.model.chat.listener with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionChatModelRequest.ChatModelRequestBuilder.toolSpecifications
(List<ToolSpecification> toolSpecifications) -
Uses of ToolSpecification in dev.langchain4j.model.chat.request
Methods in dev.langchain4j.model.chat.request that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionChatRequest.toolSpecifications()
ChatRequestParameters.toolSpecifications()
DefaultChatRequestParameters.toolSpecifications()
Methods in dev.langchain4j.model.chat.request with parameters of type ToolSpecificationModifier and TypeMethodDescriptionChatRequest.Builder.toolSpecifications
(ToolSpecification... toolSpecifications) DefaultChatRequestParameters.Builder.toolSpecifications
(ToolSpecification... toolSpecifications) Method parameters in dev.langchain4j.model.chat.request with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionChatRequest.Builder.toolSpecifications
(List<ToolSpecification> toolSpecifications) DefaultChatRequestParameters.Builder.toolSpecifications
(List<ToolSpecification> toolSpecifications) static void
ChatRequestValidator.validate
(List<ToolSpecification> toolSpecifications) -
Uses of ToolSpecification in dev.langchain4j.model.googleai
Method parameters in dev.langchain4j.model.googleai with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionint
GoogleAiGeminiTokenizer.estimateTokenCountInToolSpecifications
(Iterable<ToolSpecification> toolSpecifications) -
Uses of ToolSpecification in dev.langchain4j.model.mistralai.internal.mapper
Method parameters in dev.langchain4j.model.mistralai.internal.mapper with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic List
<MistralAiTool> MistralAiMapper.toMistralAiTools
(List<ToolSpecification> toolSpecifications) -
Uses of ToolSpecification in dev.langchain4j.model.openai
Method parameters in dev.langchain4j.model.openai with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionInternalOpenAiHelper.toFunctions
(Collection<ToolSpecification> toolSpecifications) Deprecated.InternalOpenAiHelper.toTools
(Collection<ToolSpecification> toolSpecifications, boolean strict) -
Uses of ToolSpecification in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionAiServices.tools
(Map<ToolSpecification, ToolExecutor> tools) Configures the tools that the LLM can use. -
Uses of ToolSpecification in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionToolProviderResult.tools()
ToolExecutionContext.toolSpecifications()
Returns the value of thetoolSpecifications
record component.ToolService.toolSpecifications()
Methods in dev.langchain4j.service.tool with parameters of type ToolSpecificationModifier and TypeMethodDescriptionToolProviderResult.Builder.add
(ToolSpecification tool, ToolExecutor executor) Method parameters in dev.langchain4j.service.tool with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionToolProviderResult.Builder.addAll
(Map<ToolSpecification, ToolExecutor> tools) void
ToolService.tools
(Map<ToolSpecification, ToolExecutor> tools) Constructor parameters in dev.langchain4j.service.tool with type arguments of type ToolSpecificationModifierConstructorDescriptionToolExecutionContext
(List<ToolSpecification> toolSpecifications, Map<String, ToolExecutor> toolExecutors) Creates an instance of aToolExecutionContext
record class.
InternalOpenAiHelper.toTools(Collection, boolean)
instead