MemoryItem
@JsonInclude(JsonInclude.Include.NON_NULL) public static class MemoryItem
io/agentscope/core/memory/reme/ReMeAddResponse.java:147–277记忆条目,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getWorkspaceId、setWorkspaceId、getMemoryId、setMemoryId、getMemoryType、setMemoryType。
Represents a single memory item in the response.
方法摘要Method Summary
方法详情Method Detail
getWorkspaceId
public String getWorkspaceId()
获取工作区标识。
Returns the workspace id.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:182–184setWorkspaceId
public void setWorkspaceId(String workspaceId)
设置工作区标识。
Sets the workspace id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceId | String | 工作区标识(类型 `String`)。The workspace id. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:186–188getMemoryId
public String getMemoryId()
获取记忆标识。
Returns the memory id.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:190–192setMemoryId
public void setMemoryId(String memoryId)
设置记忆标识。
Sets the memory id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryId | String | 记忆标识(类型 `String`)。The memory id. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:194–196getMemoryType
public String getMemoryType()
获取记忆类型。
Returns the memory type.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:198–200setMemoryType
public void setMemoryType(String memoryType)
设置记忆类型。
Sets the memory type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryType | String | 记忆类型(类型 `String`)。The memory type. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:202–204getWhenToUse
public String getWhenToUse()
获取当到使用。
Returns the when to use.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:206–208setWhenToUse
public void setWhenToUse(String whenToUse)
设置当到使用。
Sets the when to use.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
whenToUse | String | 当到使用(类型 `String`)。The when to use. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:210–212getContent
public String getContent()
获取内容。
Returns the content.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:214–216setContent
public void setContent(String content)
设置内容。
Sets the content.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:218–220getScore
public Double getScore()
获取分数。
Returns the score.
Doubleio/agentscope/core/memory/reme/ReMeAddResponse.java:222–224setScore
public void setScore(Double score)
设置分数。
Sets the score.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
score | Double | 分数(类型 `Double`)。The score. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:226–228getTimeCreated
public String getTimeCreated()
获取时间已创建。
Returns the time created.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:230–232setTimeCreated
public void setTimeCreated(String timeCreated)
设置时间已创建。
Sets the time created.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timeCreated | String | 时间已创建(类型 `String`)。The time created. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:234–236getTimeModified
public String getTimeModified()
获取 getTimeModified。
Returns the time modified.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:238–240setTimeModified
public void setTimeModified(String timeModified)
设置 setTimeModified。
Sets the time modified.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timeModified | String | 时间 Modified(类型 `String`)。The time modified. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:242–244getAuthor
public String getAuthor()
获取 getAuthor。
Returns the author.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:246–248setAuthor
public void setAuthor(String author)
设置 setAuthor。
Sets the author.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
author | String | author(类型 `String`)。The author. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:250–252getMetadata
public Map<String, Object> getMetadata()
获取元数据。
Returns the metadata.
Map<String, Object>io/agentscope/core/memory/reme/ReMeAddResponse.java:254–256setMetadata
public void setMetadata(Map<String, Object> metadata)
设置元数据。
Sets the metadata.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Map<String, Object> | 元数据(类型 `Map`)。The metadata. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:258–260getTarget
public String getTarget()
获取目标。
Returns the target.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:262–264setTarget
public void setTarget(String target)
设置目标。
Sets the target.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
target | String | 目标(类型 `String`)。The target. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:266–268getReflectionSubject
public String getReflectionSubject()
获取 getReflectionSubject。
Returns the reflection subject.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:270–272setReflectionSubject
public void setReflectionSubject(String reflectionSubject)
设置 setReflectionSubject。
Sets the reflection subject.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reflectionSubject | String | reflection 主题(类型 `String`)。The reflection subject. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:274–276