Methods
Method |
Description |
dev.langchain4j.agent.tool.from(java.lang.String,Object)
|
Construct a property with key and value. |
dev.langchain4j.agent.tool.property(java.lang.String,Object)
|
Construct a property with key and value. |
dev.langchain4j.agent.tool.type(java.lang.String)
|
Construct a property with key "type" and value. |
dev.langchain4j.agent.tool.description(java.lang.String)
|
Construct a property with key "description" and value. |
dev.langchain4j.agent.tool.enums(kotlin.Array)
|
Construct a property with key "enum" and value enumValues. |
dev.langchain4j.agent.tool.enums(kotlin.Array)
|
Construct a property with key "enum" and value enumValues. |
dev.langchain4j.agent.tool.enums(java.lang.Class)
|
Construct a property with key "enum" and all enum values taken from enumClass. |
dev.langchain4j.agent.tool.items(dev.langchain4j.agent.tool.JsonSchemaProperty)
|
Wraps the given type in a property with key "items". |
dev.langchain4j.agent.tool.objectItems(dev.langchain4j.agent.tool.JsonSchemaProperty)
|
|
dev.langchain4j.agent.tool.type(java.lang.String)
|
Sets the type . |
dev.langchain4j.agent.tool.properties(java.util.Map)
|
Sets the properties . |
dev.langchain4j.agent.tool.required(java.util.List)
|
Sets the required . |
dev.langchain4j.agent.tool.build()
|
Returns a ToolParameters built from the parameters previously set. |
dev.langchain4j.agent.tool.builder()
|
ToolParameters builder static inner class. |
dev.langchain4j.agent.tool.parameters(dev.langchain4j.agent.tool.ToolParameters)
|
Sets the parameters . |
dev.langchain4j.agent.tool.addParameter(java.lang.String,kotlin.Array)
|
Adds a parameter to the tool. |
dev.langchain4j.agent.tool.addParameter(java.lang.String,java.lang.Iterable)
|
Adds a parameter to the tool. |
dev.langchain4j.agent.tool.addOptionalParameter(java.lang.String,kotlin.Array)
|
Adds an optional parameter to the tool. |
dev.langchain4j.agent.tool.addOptionalParameter(java.lang.String,java.lang.Iterable)
|
Adds an optional parameter to the tool. |
dev.langchain4j.agent.tool.toolParameters()
|
|
dev.langchain4j.data.message.text()
|
The text of the message. |
dev.langchain4j.data.message.text()
|
UserMessage can contain not just a single String text , but also multiple Contents, which can be either TextContent or ImageContent. |
dev.langchain4j.data.document.get(java.lang.String)
|
Returns the value associated with the given key. |
dev.langchain4j.data.document.add(java.lang.String,Object)
|
Adds a key-value pair to the metadata. |
dev.langchain4j.data.document.add(java.lang.String,java.lang.String)
|
Adds a key-value pair to the metadata. |
dev.langchain4j.data.document.asMap()
|
Get a copy of the metadata as a map of key-value pairs. |
dev.langchain4j.data.document.from(java.lang.String,Object)
|
|
dev.langchain4j.data.document.metadata(java.lang.String,Object)
|
|
dev.langchain4j.data.document.metadata(java.lang.String)
|
Looks up the metadata value for the given key. |
dev.langchain4j.data.segment.metadata(java.lang.String)
|
Returns the metadata value for the given key. |
dev.langchain4j.store.embedding.findRelevant(dev.langchain4j.data.embedding.Embedding,int)
|
Finds the most relevant (closest in space) embeddings to the provided reference embedding. |
dev.langchain4j.store.embedding.findRelevant(dev.langchain4j.data.embedding.Embedding,int,double)
|
Finds the most relevant (closest in space) embeddings to the provided reference embedding. |
dev.langchain4j.store.embedding.findRelevant(Object,dev.langchain4j.data.embedding.Embedding,int)
|
Finds the most relevant (closest in space) embeddings to the provided reference embedding. |
dev.langchain4j.store.embedding.findRelevant(Object,dev.langchain4j.data.embedding.Embedding,int,double)
|
Finds the most relevant (closest in space) embeddings to the provided reference embedding. |
dev.langchain4j.rag.augment(dev.langchain4j.data.message.UserMessage,dev.langchain4j.rag.query.Metadata)
|
Augments the provided UserMessage with retrieved content. |
dev.langchain4j.rag.augment(dev.langchain4j.data.message.UserMessage,dev.langchain4j.rag.query.Metadata)
|
|
dev.langchain4j.rag.content.injector.inject(java.util.List,dev.langchain4j.data.message.UserMessage)
|
Injects given Contents into a given UserMessage. |
dev.langchain4j.rag.content.injector.inject(java.util.List,dev.langchain4j.data.message.UserMessage)
|
|
dev.langchain4j.model.chat.generate(dev.langchain4j.data.message.UserMessage,dev.langchain4j.model.StreamingResponseHandler)
|
Generates a response from the model based on a message from a user. |
dev.langchain4j.model.chat.generate(java.lang.String)
|
Generates a response from the model based on a message from a user. |
dev.langchain4j.model.chat.generate(kotlin.Array)
|
Generates a response from the model based on a sequence of messages. |
dev.langchain4j.model.chat.generate(java.util.List)
|
Generates a response from the model based on a sequence of messages. |
dev.langchain4j.model.chat.generate(java.util.List,java.util.List)
|
Generates a response from the model based on a list of messages and a list of tool specifications. |
dev.langchain4j.model.chat.generate(java.util.List,dev.langchain4j.agent.tool.ToolSpecification)
|
Generates a response from the model based on a list of messages and a single tool specification. |
dev.langchain4j.model.chat.generate(java.lang.String,dev.langchain4j.model.StreamingResponseHandler)
|
Generates a response from the model based on a message from a user. |
dev.langchain4j.model.chat.generate(java.util.List,dev.langchain4j.model.StreamingResponseHandler)
|
Generates a response from the model based on a sequence of messages. |
dev.langchain4j.model.chat.generate(java.util.List,java.util.List,dev.langchain4j.model.StreamingResponseHandler)
|
Generates a response from the model based on a list of messages and a list of tool specifications. |
dev.langchain4j.model.chat.generate(java.util.List,dev.langchain4j.agent.tool.ToolSpecification,dev.langchain4j.model.StreamingResponseHandler)
|
Generates a response from the model based on a list of messages and a single tool specification. |
dev.langchain4j.model.chat.request.toolSpecifications(java.util.List)
|
|
dev.langchain4j.model.chat.request.toolSpecifications(kotlin.Array)
|
|
dev.langchain4j.model.chat.request.responseFormat(dev.langchain4j.model.chat.request.ResponseFormat)
|
|
dev.langchain4j.model.chat.request.toolSpecifications()
|
|
dev.langchain4j.model.chat.request.responseFormat()
|
|
dev.langchain4j.model.chat.request.json.properties(java.util.Map)
|
Sets the properties of this JSON object. |
dev.langchain4j.model.chat.listener.response()
|
|
dev.langchain4j.model.chat.listener.request()
|
|
dev.langchain4j.model.chat.listener.request()
|
|
dev.langchain4j.model.chat.listener.partialResponse()
|
|
dev.langchain4j.model.chat.listener.request()
|
|
dev.langchain4j.internal.toJson(Object)
|
Convert the given object to JSON. |
dev.langchain4j.internal.fromJson(java.lang.String,java.lang.Class)
|
Convert the given JSON string to an object of the given class. |
dev.langchain4j.internal.fromJson(java.lang.String,java.lang.reflect.Type)
|
Convert the given JSON string to an object of the given type. |
dev.langchain4j.internal.toInputStream(Object,java.lang.Class)
|
Convert the given object to an InputStream. |
dev.langchain4j.internal.isCollectionEmpty(java.util.Collection)
|
|