Builder
public static class Builder
io/agentscope/core/memory/mem0/Mem0AddRequest.java:313–467Mem0AddRequest的构建器。位于 io.agentscope.core.memory.mem0 包。核心成员包括 messages、agentId、userId、appId、runId、metadata。
Builder for Mem0AddRequest.
方法摘要Method Summary
方法详情Method Detail
messages
public Builder messages(List<Mem0Message> messages)
设置消息。
Performs the messages operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<Mem0Message> | 消息列表(类型 `List`)。The messages. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:335–338agentId
public Builder agentId(String agentId)
设置智能体标识。
Performs the agent id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:340–343userId
public Builder userId(String userId)
设置用户标识。
Performs the user id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识(类型 `String`)。The user id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:345–348appId
public Builder appId(String appId)
设置应用标识。
Performs the app id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
appId | String | 应用标识(类型 `String`)。The app id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:350–353runId
public Builder runId(String runId)
设置运行标识。
Runs the id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:355–358metadata
public Builder metadata(Map<String, Object> metadata)
设置元数据。
Performs the metadata operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Map<String, Object> | 元数据(类型 `Map`)。The metadata. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:360–363includes
public Builder includes(String includes)
设置该配置项。
Performs the includes operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
includes | String | includes(类型 `String`)。The includes. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:365–368excludes
public Builder excludes(String excludes)
设置该配置项。
Performs the excludes operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
excludes | String | excludes(类型 `String`)。The excludes. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:370–373infer
public Builder infer(Boolean infer)
设置该配置项。
Performs the infer operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
infer | Boolean | infer(类型 `Boolean`)。The infer. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:375–378outputFormat
public Builder outputFormat(String outputFormat)
设置输出格式。
Performs the output format operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
outputFormat | String | 输出格式(类型 `String`)。The output format. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:380–383customCategories
public Builder customCategories(Map<String, Object> customCategories)
设置自定义类别。
Performs the custom categories operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
customCategories | Map<String, Object> | 自定义类别(类型 `Map`)。The custom categories. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:385–388customInstructions
public Builder customInstructions(String customInstructions)
设置自定义指令。
Performs the custom instructions operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
customInstructions | String | 自定义指令(类型 `String`)。The custom instructions. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:390–393immutable
public Builder immutable(Boolean immutable)
设置不可变。
Performs the immutable operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
immutable | Boolean | 不可变(类型 `Boolean`)。The immutable. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:395–398asyncMode
public Builder asyncMode(Boolean asyncMode)
设置异步模式。
Performs the async mode operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
asyncMode | Boolean | 异步模式(类型 `Boolean`)。The async mode. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:400–403timestamp
public Builder timestamp(Long timestamp)
设置时间戳。
Performs the timestamp operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timestamp | Long | 时间戳(类型 `Long`)。The timestamp. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:405–408expirationDate
public Builder expirationDate(String expirationDate)
设置该配置项。
Performs the expiration date operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
expirationDate | String | expiration 日期(类型 `String`)。The expiration date. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:410–413orgId
public Builder orgId(String orgId)
设置该配置项。
Performs the org id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
orgId | String | org 标识(类型 `String`)。The org id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:415–418projectId
public Builder projectId(String projectId)
设置该配置项。
Performs the project id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
projectId | String | project 标识(类型 `String`)。The project id. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:420–423version
public Builder version(String version)
设置版本。
Performs the version operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | String | 版本(类型 `String`)。The version. |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:425–428memoryType
public Builder memoryType(String memoryType)
设置记忆类型。
Sets the memory type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryType | String | 记忆类型。The memory type |
Builderio/agentscope/core/memory/mem0/Mem0AddRequest.java:437–441build
public Mem0AddRequest build()
构建并返回最终实例。
Creates and returns an instance.
Mem0AddRequestio/agentscope/core/memory/mem0/Mem0AddRequest.java:443–466