Uses of Class
dev.langchain4j.agent.tool.ToolSpecification
Packages that use ToolSpecification
-
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) Get theToolSpecification
for the givenTool
method.Methods in dev.langchain4j.agent.tool that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic List
<ToolSpecification> ToolSpecifications.toolSpecificationsFrom
(Object objectWithTools) Get theToolSpecification
s for eachTool
method of the given object. -
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.