Class BailianAddRequest
java.lang.Object
io.agentscope.core.memory.bailian.BailianAddRequest
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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for BailianAddRequest. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BailianAddRequest.Builderbuilder()Creates a new builder for BailianAddRequest.Gets the custom content.Gets the memory library ID.Gets the messages.Gets the metadata.Gets the profile schema.Gets the project ID.Gets the user ID.voidsetCustomContent(String customContent) Sets the custom content.voidsetMemoryLibraryId(String memoryLibraryId) Sets the memory library ID.voidsetMessages(List<BailianMessage> messages) Sets the messages.voidsetMetadata(Map<String, Object> metadata) Sets the metadata.voidsetProfileSchema(String profileSchema) Sets the profile schema.voidsetProjectId(String projectId) Sets the project ID.voidSets the user ID.
-
Constructor Details
-
BailianAddRequest
public BailianAddRequest()Default constructor for Jackson.
-
-
Method Details
-
getUserId
Gets the user ID.- Returns:
- the user ID
-
setUserId
Sets the user ID.- Parameters:
userId- the user ID
-
getMessages
Gets the messages.- Returns:
- the messages list
-
setMessages
Sets the messages.- Parameters:
messages- the messages list
-
getCustomContent
Gets the custom content.- Returns:
- the custom content
-
setCustomContent
Sets the custom content.- Parameters:
customContent- the custom content
-
getMemoryLibraryId
Gets the memory library ID.- Returns:
- the memory library ID
-
setMemoryLibraryId
Sets the memory library ID.- Parameters:
memoryLibraryId- the memory library ID
-
getProjectId
Gets the project ID.- Returns:
- the project ID
-
setProjectId
Sets the project ID.- Parameters:
projectId- the project ID
-
getProfileSchema
Gets the profile schema.- Returns:
- the profile schema
-
setProfileSchema
Sets the profile schema.- Parameters:
profileSchema- the profile schema
-
getMetadata
Gets the metadata.- Returns:
- the metadata map
-
setMetadata
Sets the metadata.- Parameters:
metadata- the metadata map
-
builder
Creates a new builder for BailianAddRequest.- Returns:
- a new Builder instance
-