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.model
Methods in dev.langchain4j.model with parameters of type ToolSpecificationModifier and TypeMethodDescriptiondefault int
Tokenizer.estimateTokenCountInForcefulToolSpecification
(ToolSpecification toolSpecification) Estimates the count of tokens in the given tool specification.Method parameters in dev.langchain4j.model with type arguments of type ToolSpecificationModifier and TypeMethodDescriptionint
Tokenizer.estimateTokenCountInToolSpecifications
(Iterable<ToolSpecification> toolSpecifications) Estimates the count of tokens in the given tool specifications. -
Uses of ToolSpecification in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type ToolSpecificationModifier and TypeMethodDescriptionChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) Generates a response from the model based on a list of messages and a single tool specification.DisabledChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) default void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a list of messages and a tool specification. -
Uses of ToolSpecification in dev.langchain4j.model.chat.listener
Methods in dev.langchain4j.model.chat.listener that return types with arguments of type ToolSpecification -
Uses of ToolSpecification in dev.langchain4j.model.chat.request
Methods in dev.langchain4j.model.chat.request that return types with arguments of type ToolSpecificationMethods in dev.langchain4j.model.chat.request with parameters of type ToolSpecificationModifier and TypeMethodDescriptionChatRequest.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)