Builder
public static class Builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:204–306BailianAddRequest的构建器。位于 io.agentscope.core.memory.bailian 包。核心成员包括 userId、messages、customContent、memoryLibraryId、projectId、profileSchema。
Builder for BailianAddRequest.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder userId(String userId) | 设置用户标识。 Sets the user ID. |
public Builder messages(List<BailianMessage> messages) | 设置消息。 Sets the messages. |
public Builder customContent(String customContent) | 设置自定义内容。 Sets the custom content. |
public Builder memoryLibraryId(String memoryLibraryId) | 设置该配置项。 Sets the memory library ID. |
public Builder projectId(String projectId) | 设置该配置项。 Sets the project ID. |
public Builder profileSchema(String profileSchema) | 设置配置档案模式。 Sets the profile schema. |
public Builder metadata(Map<String, Object> metadata) | 设置元数据。 Sets the metadata. |
public BailianAddRequest build() | 构建BailianAddRequest 实例。 Builds the BailianAddRequest instance. |
方法详情Method Detail
userId
public Builder userId(String userId)
设置用户标识。
Sets the user ID.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识。the user ID |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:219–222messages
public Builder messages(List<BailianMessage> messages)
设置消息。
Sets the messages.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<BailianMessage> | 消息列出。the messages list |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:230–233customContent
public Builder customContent(String customContent)
设置自定义内容。
Sets the custom content.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
customContent | String | 自定义内容。the custom content |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:241–244memoryLibraryId
public Builder memoryLibraryId(String memoryLibraryId)
设置该配置项。
Sets the memory library ID.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryLibraryId | String | 记忆 Library 标识(类型 `String`)。the memory library ID |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:252–255projectId
public Builder projectId(String projectId)
设置该配置项。
Sets the project ID.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
projectId | String | project 标识(类型 `String`)。the project ID |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:263–266profileSchema
public Builder profileSchema(String profileSchema)
设置配置档案模式。
Sets the profile schema.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
profileSchema | String | 配置档案模式。the profile schema |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:274–277metadata
public Builder metadata(Map<String, Object> metadata)
设置元数据。
Sets the metadata.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Map<String, Object> | 元数据映射。the metadata map |
Builder返回当前实例,以支持链式调用。this builder
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:285–288build
public BailianAddRequest build()
构建BailianAddRequest 实例。
Builds the BailianAddRequest instance.
BailianAddRequest一种新的BailianAddRequest 实例。a new BailianAddRequest instance
源码Source
io/agentscope/core/memory/bailian/BailianAddRequest.java:295–305