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 aToolSpecificationbuilt from the parameters previously set.static ToolSpecificationToolSpecifications.toolSpecificationFrom(Method method) Get theToolSpecificationfor the givenToolmethod.Methods in dev.langchain4j.agent.tool that return types with arguments of type ToolSpecificationModifier and TypeMethodDescriptionstatic List<ToolSpecification> ToolSpecifications.toolSpecificationsFrom(Object objectWithTools) Get theToolSpecifications for eachToolmethod of the given object. -
Uses of ToolSpecification in dev.langchain4j.model
Methods in dev.langchain4j.model with parameters of type ToolSpecificationModifier and TypeMethodDescriptiondefault intTokenizer.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 TypeMethodDescriptionintTokenizer.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) voidDisabledStreamingChatLanguageModel.generate(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) default voidStreamingChatLanguageModel.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.