MemorySearchPreviewTool interface
将记忆集成到代理中的工具。
- 扩展
属性
| memory_store_name | 要使用的内存存储的名称。 |
| scope | 用于对内存进行分组和隔离的命名空间,例如用户 ID。
限制可以检索或更新的记忆。
使用特殊变量 |
| search_options | 用于搜索内存存储的选项。 |
| type | 工具的类型。 始终为 |
| update_delay | 不活动后更新内存之前的等待时间(秒)。 默认值为 300。 |
属性详细信息
memory_store_name
要使用的内存存储的名称。
memory_store_name: string
属性值
string
scope
用于对内存进行分组和隔离的命名空间,例如用户 ID。
限制可以检索或更新的记忆。
使用特殊变量 {{$userId}} 将内存范围限定为当前登录的用户。
scope: string
属性值
string
search_options
type
工具的类型。 始终为 memory_search_preview。
type: "memory_search_preview"
属性值
"memory_search_preview"
update_delay
不活动后更新内存之前的等待时间(秒)。 默认值为 300。
update_delay?: number
属性值
number