BailianAddRequest
@JsonInclude(JsonInclude.Include.NON_NULL) public class BailianAddRequest
io/agentscope/core/memory/bailian/BailianAddRequest.java:33–307Bailian 添加请求,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.bailian 包。核心成员包括 getUserId、setUserId、getMessages、setMessages、getCustomContent、setCustomContent。
Request object for adding memories to Bailian Memory API.
This request is sent to the POST /api/v2/apps/memory/add endpoint to record new memories. Bailian will process the messages and extract memorable information using LLM-powered inference.
The metadata fields are used to organize and filter memories, enabling multi-tenant and multi-user scenarios.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | BailianAddRequest的构建器。 Builder for BailianAddRequest. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public BailianAddRequest() | 初始化 `BailianAddRequest` 实例。 Default constructor for Jackson. |
方法摘要Method Summary
构造器详情Constructor Detail
BailianAddRequest
public BailianAddRequest()
初始化 BailianAddRequest 实例。
Default constructor for Jackson.
io/agentscope/core/memory/bailian/BailianAddRequest.java:64方法详情Method Detail
getUserId
public String getUserId()
获取用户标识。
Gets the user ID.
Stringio/agentscope/core/memory/bailian/BailianAddRequest.java:71–73setUserId
public void setUserId(String userId)
设置用户标识。
Sets the user ID.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识。the user ID |
io/agentscope/core/memory/bailian/BailianAddRequest.java:80–82getMessages
public List<BailianMessage> getMessages()
获取消息。
Gets the messages.
List<BailianMessage>io/agentscope/core/memory/bailian/BailianAddRequest.java:89–91setMessages
public void setMessages(List<BailianMessage> messages)
设置消息。
Sets the messages.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<BailianMessage> | 消息列出。the messages list |
io/agentscope/core/memory/bailian/BailianAddRequest.java:98–100getCustomContent
public String getCustomContent()
获取自定义内容。
Gets the custom content.
Stringio/agentscope/core/memory/bailian/BailianAddRequest.java:107–109setCustomContent
public void setCustomContent(String customContent)
设置自定义内容。
Sets the custom content.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
customContent | String | 自定义内容。the custom content |
io/agentscope/core/memory/bailian/BailianAddRequest.java:116–118getMemoryLibraryId
public String getMemoryLibraryId()
获取 getMemoryLibraryId。
Gets the memory library ID.
Stringio/agentscope/core/memory/bailian/BailianAddRequest.java:125–127setMemoryLibraryId
public void setMemoryLibraryId(String memoryLibraryId)
设置 setMemoryLibraryId。
Sets the memory library ID.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryLibraryId | String | 记忆 Library 标识(类型 `String`)。the memory library ID |
io/agentscope/core/memory/bailian/BailianAddRequest.java:134–136getProjectId
public String getProjectId()
获取 getProjectId。
Gets the project ID.
Stringio/agentscope/core/memory/bailian/BailianAddRequest.java:143–145setProjectId
public void setProjectId(String projectId)
设置 setProjectId。
Sets the project ID.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
projectId | String | project 标识(类型 `String`)。the project ID |
io/agentscope/core/memory/bailian/BailianAddRequest.java:152–154getProfileSchema
public String getProfileSchema()
获取配置档案模式。
Gets the profile schema.
Stringio/agentscope/core/memory/bailian/BailianAddRequest.java:161–163setProfileSchema
public void setProfileSchema(String profileSchema)
设置配置档案模式。
Sets the profile schema.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
profileSchema | String | 配置档案模式。the profile schema |
io/agentscope/core/memory/bailian/BailianAddRequest.java:170–172getMetadata
public Map<String, Object> getMetadata()
获取元数据。
Gets the metadata.
Map<String, Object>io/agentscope/core/memory/bailian/BailianAddRequest.java:179–181setMetadata
public void setMetadata(Map<String, Object> metadata)
设置元数据。
Sets the metadata.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Map<String, Object> | 元数据映射。the metadata map |
io/agentscope/core/memory/bailian/BailianAddRequest.java:188–190builder
public static Builder builder()
创建新的构建器用于 BailianAddRequest。
Creates a new builder for BailianAddRequest.
Builderio/agentscope/core/memory/bailian/BailianAddRequest.java:197–199嵌套类详情Nested Class Detail
Builder
public static class BuilderBailianAddRequest的构建器。位于 io.agentscope.core.memory.bailian 包。核心成员包括 userId、messages、customContent、memoryLibraryId、projectId、profileSchema。
Builder for BailianAddRequest.