uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Attach, list, and remove memory spaces and memory items on a low-code agent with `uip agent memory`.
uip agent memory manages the memory-space features attached to an agent: a memory space is a retrieval-augmented recall source (episodic or escalation memory) the agent can search against at runtime. uip agent memory item manages individual key/value items seeded into a configured memory space.
Local-only — no login required.
大纲
uip agent memory add <name> --memory-space <name> --folder-path <path> [--reference-key <key>] [--description <desc>] [--threshold <n>] [--result-count <n>] [--search-mode <hybrid|semantic>] [--field <name=weight>]... [--disable-dynamic-few-shot] [--path <dir>]
uip agent memory list [--path <dir>]
uip agent memory remove <name> [--folder-path <path>] [--path <dir>]
uip agent memory item add <name> <key> <value> --memory-type <episodic|escalation> [--folder-path <path>] [--description <desc>] [--metadata <json>] [--path <dir>]
uip agent memory item list <name> [--folder-path <path>] [--path <dir>]
uip agent memory item remove <name> <key> [--folder-path <path>] [--path <dir>]
uip agent memory add <name> --memory-space <name> --folder-path <path> [--reference-key <key>] [--description <desc>] [--threshold <n>] [--result-count <n>] [--search-mode <hybrid|semantic>] [--field <name=weight>]... [--disable-dynamic-few-shot] [--path <dir>]
uip agent memory list [--path <dir>]
uip agent memory remove <name> [--folder-path <path>] [--path <dir>]
uip agent memory item add <name> <key> <value> --memory-type <episodic|escalation> [--folder-path <path>] [--description <desc>] [--metadata <json>] [--path <dir>]
uip agent memory item list <name> [--folder-path <path>] [--path <dir>]
uip agent memory item remove <name> <key> [--folder-path <path>] [--path <dir>]
All invocations honor the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract.
uip agent memory add
Attach a memory space to the agent.
参数
<name>(required) — Feature name to use in the agent.
选项
| 标记 | 默认 | 必填 | 用途 |
|---|---|---|---|
--memory-space <name> | — | 是 | Memory space name to attach. |
--folder-path <path> | — | 是 | Folder path where the memory space exists. |
--reference-key <key> | — | Memory space solution resource key. | |
--description <desc> | — | Memory space description. | |
--threshold <n> | 0 | Retrieval score threshold. | |
--result-count <n> | 3 | Number of results to retrieve (positive integer). | |
--search-mode <mode> | hybrid | hybrid 或 semantic。 | |
--field <name=weight> | — | Input field weight. Repeatable. | |
--disable-dynamic-few-shot | 关闭 | Attach the memory space without enabling dynamic few-shot retrieval (enabled by default). | |
--path <path> | . | 智能体项目目录的路径。 |
示例
uip agent memory add SupportRecall --memory-space customer-support-recall --folder-path Shared --path ./my-agent
uip agent memory add SupportRecall --memory-space customer-support-recall --folder-path Shared --path ./my-agent
数据形状(--输出 json)
{
"Code": "AgentMemoryAdd",
"Data": {
"Status": "Memory space added",
"Name": "SupportRecall",
"MemorySpace": "customer-support-recall",
"FolderPath": "Shared",
"DynamicFewShotEnabled": true,
"Id": "a1b2c3d4-0000-0000-0000-000000000070"
}
}
{
"Code": "AgentMemoryAdd",
"Data": {
"Status": "Memory space added",
"Name": "SupportRecall",
"MemorySpace": "customer-support-recall",
"FolderPath": "Shared",
"DynamicFewShotEnabled": true,
"Id": "a1b2c3d4-0000-0000-0000-000000000070"
}
}
uip agent memory list
选项
| 标记 | 默认 | 用途 |
|---|---|---|
--path <path> | . | 智能体项目目录的路径。 |
示例
uip agent memory list --path ./my-agent
uip agent memory list --path ./my-agent
数据形状(--输出 json)
{
"Code": "AgentMemoryList",
"Data": [
{ "Name": "SupportRecall", "MemorySpace": "customer-support-recall", "FolderPath": "Shared", "DynamicFewShotEnabled": true, "Id": "a1b2c3d4-0000-0000-0000-000000000070" }
]
}
{
"Code": "AgentMemoryList",
"Data": [
{ "Name": "SupportRecall", "MemorySpace": "customer-support-recall", "FolderPath": "Shared", "DynamicFewShotEnabled": true, "Id": "a1b2c3d4-0000-0000-0000-000000000070" }
]
}
uip agent memory remove
参数
<name>(required) — Feature name, memory space name, or ID to remove.
选项
| 标记 | 用途 |
|---|---|
--folder-path <path> | Folder path, when removing by memory space name. |
--path <path> | Path to the agent project directory (default .). |
示例
uip agent memory remove SupportRecall --path ./my-agent
uip agent memory remove SupportRecall --path ./my-agent
数据形状(--输出 json)
{ "Code": "AgentMemoryRemove", "Data": { "Status": "Memory space removed", "Name": "SupportRecall" } }
{ "Code": "AgentMemoryRemove", "Data": { "Status": "Memory space removed", "Name": "SupportRecall" } }
A memory space not found by name/ID fails the command with a non-zero exit code.
uip agent memory item add
Add a memory item to a configured memory space.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<name> | 是 | Feature name, memory space name, or ID. |
<key> | 是 | Memory item key. |
<value> | 是 | Memory item value. |
选项
| 标记 | 必填 | 用途 |
|---|---|---|
--folder-path <path> | Folder path, when selecting by memory space name. | |
--memory-type <type> | 是 | episodic (0) or escalation (1) — numeric values 0/1 also accepted. |
--description <desc> | Memory item description. | |
--metadata <json> | Memory item metadata as a JSON object. | |
--path <path> | Path to the agent project directory (default .). |
示例
uip agent memory item add SupportRecall customer-tier gold --memory-type episodic --metadata '{"source":"seed"}' --path ./my-agent
uip agent memory item add SupportRecall escalation-case pending --memory-type escalation --path ./my-agent
uip agent memory item add SupportRecall customer-tier gold --memory-type episodic --metadata '{"source":"seed"}' --path ./my-agent
uip agent memory item add SupportRecall escalation-case pending --memory-type escalation --path ./my-agent
数据形状(--输出 json)
{
"Code": "AgentMemoryItemAdd",
"Data": { "Status": "Memory item added", "Memory": "SupportRecall", "Key": "customer-tier", "MemoryType": 0, "Id": "a1b2c3d4-0000-0000-0000-000000000080" }
}
{
"Code": "AgentMemoryItemAdd",
"Data": { "Status": "Memory item added", "Memory": "SupportRecall", "Key": "customer-tier", "MemoryType": 0, "Id": "a1b2c3d4-0000-0000-0000-000000000080" }
}
uip agent memory item list
参数
<name>(required) — Feature name, memory space name, or ID.
选项
| 标记 | 用途 |
|---|---|
--folder-path <path> | Folder path, when selecting by memory space name. |
--path <path> | Path to the agent project directory (default .). |
示例
uip agent memory item list SupportRecall --path ./my-agent
uip agent memory item list SupportRecall --path ./my-agent
数据形状(--输出 json)
{
"Code": "AgentMemoryItemList",
"Data": [
{ "Key": "customer-tier", "Value": "gold", "MemoryType": 0, "Description": null, "Metadata": { "source": "seed" }, "Id": "a1b2c3d4-0000-0000-0000-000000000080" }
]
}
{
"Code": "AgentMemoryItemList",
"Data": [
{ "Key": "customer-tier", "Value": "gold", "MemoryType": 0, "Description": null, "Metadata": { "source": "seed" }, "Id": "a1b2c3d4-0000-0000-0000-000000000080" }
]
}
uip agent memory item remove
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<name> | 是 | Feature name, memory space name, or ID. |
<key> | 是 | Memory item key or ID to remove. |
选项
| 标记 | 用途 |
|---|---|
--folder-path <path> | Folder path, when selecting by memory space name. |
--path <path> | Path to the agent project directory (default .). |
示例
uip agent memory item remove SupportRecall customer-tier --path ./my-agent
uip agent memory item remove SupportRecall customer-tier --path ./my-agent
数据形状(--输出 json)
{ "Code": "AgentMemoryItemRemove", "Data": { "Status": "Memory item removed", "Memory": "SupportRecall", "Key": "customer-tier" } }
{ "Code": "AgentMemoryItemRemove", "Data": { "Status": "Memory item removed", "Memory": "SupportRecall", "Key": "customer-tier" } }
相关内容
uip agent validate— re-run after editing memory configuration.uip agent refresh— regenerates derived files after a memory space is added.
另请参阅
- 大纲
- uip agent memory add
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip agent memory list
- 选项
- 示例
- 数据形状(--输出 json)
- uip agent memory remove
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip agent memory item add
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip agent memory item list
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip agent memory item remove
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 相关内容
- 另请参阅