UiPath Documentation
uipath-cli
2026.10
false
UiPath-CLI-Benutzerhandbuch

Gedächtnis des UIP-Agents

Syntax and options for `uip agent memory`, which attaches, lists, and removes memory spaces on a low-code agent and adds, lists, disables, enables, or removes the items a deployed memory space holds.

uip agent memory manages the memory-space features attached to an agent: a memory space is a retrieval-augmented recall source the agent can search against at runtime. uip agent memory item adds, lists, disables, enables, and removes the items a memory space holds at runtime. Items come from real agent runs: feedback left on a run's trace (episodic items) or an escalation span the agent raised (escalation items).

memory add, memory list, and memory remove edit the local agent project. The memory item verbs read and write the deployed runtime memory space, and require login. Run uip login first.

Zusammenfassung​

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> --memory-type episodic --feedback-id <id> [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item add  <name> --memory-type escalation --trace-id <id> --span-id <id> [--answer <text>] [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item list <name> [--memory-type <episodic|escalation>] [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item disable <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item enable  <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item remove  <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>] --yes
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> --memory-type episodic --feedback-id <id> [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item add  <name> --memory-type escalation --trace-id <id> --span-id <id> [--answer <text>] [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item list <name> [--memory-type <episodic|escalation>] [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item disable <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item enable  <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>]
uip agent memory item remove  <name> (--item-id <ids...> | --feedback-id <ids...>) [--folder-path <path> | --folder-key <key>] [--path <dir>] --yes

Alle Aufrufe berücksichtigen die globalen Optionen (--output, --output-filter, --log-level, --log-file). Austrittscodes folgen dem Standardvertrag.

Hinzufügen zum UIP-Agentengedächtnis​

Hängen Sie einen Gedächtnisbereich an den Agent an.

Argumente​

  • <name> (erforderlich) – Funktionsname, der im Agent verwendet werden soll.

Optionen​

MarkierenStandardErforderlichZweck
--memory-space <name>–jaGedächtnisbereichsname, der angehängt werden soll.
--folder-path <path>solution_folder innerhalb einer Lösungaußerhalb einer LösungOrdnerpfad, in dem sich der Gedächtnisbereich befindet. Erforderlich, wenn sich das Agent-Projekt nicht innerhalb einer Lösung befindet.
--reference-key <key>–Ressourcenschlüssel der Lösung für den Gedächtnisbereich. Wenn er weggelassen wird, wird der Schlüssel aus der umschließenden Lösung aufgelöst.
--description <desc>–Gedächtnisbereichsbeschreibung.
--threshold <n>0Schwellenwert für die Abrufpunktzahl.
--result-count <n>3Anzahl der abzurufenden Ergebnisse (positiver Integer).
--search-mode <mode>hybridhybrid oder semantic.
--field <name=weight>–Gewichtung des Eingabefelds. Wiederholbar.
--disable-dynamic-few-shotausHängen Sie den Gedächtnisbereich an, ohne den dynamischen Few-Shot-Abruf zu aktivieren (standardmäßig aktiviert).
--path <path>.Pfad zum Agent-Projektverzeichnis.

Lösungsressource​

Wenn sich das Agent-Projekt in einer Lösung befindet und --reference-key weggelassen wird, verknüpft memory add die Funktion mit der Gedächtnisbereichsressource, die die Lösung deklariert. Data.SolutionResource.Status meldet das Ergebnis:

StatusBedeutung
NotInSolutionKeine Lösung umschließt das Projekt. Es ist nichts deklariert oder verknüpft.
LinkedDie Lösung deklariert diesen Gedächtnisbereich bereits. Die Funktion hat ihren Schlüssel.
CreatedDer Gedächtnisbereich befindet sich in solution_folder und die Lösung hat ihn nicht deklariert. Der Befehl deklariert sie in der Lösung und verknüpft die Funktion.
NotDeclaredDer Gedächtnisbereich befindet sich in einem anderen Ordner als solution_folder und die Lösung deklariert ihn nicht. Instructions gibt den Befehl uip solution resources add --source remote zur Ausführung an.
ProvidedDer Schlüssel stammt von --reference-key.

Wenn das Schreiben der Funktion fehlschlägt, nachdem der Befehl den Gedächtnisbereich in der Lösung deklariert hat, entfernt der Befehl diese Deklaration erneut. Weitere Informationen finden Sie unter uip-Lösungsressourcen , um Lösungsressourcen direkt zu verwalten.

Beispiele​

# Standalone agent project: --folder-path is required
uip agent memory add SupportRecall --memory-space customer-support-recall --folder-path Shared --path ./my-agent

# Inside a solution: declare the memory space as a solution resource and link it
uip agent memory add SupportRecall --memory-space customer-support-recall --path ./my-agent
# Standalone agent project: --folder-path is required
uip agent memory add SupportRecall --memory-space customer-support-recall --folder-path Shared --path ./my-agent

# Inside a solution: declare the memory space as a solution resource and link it
uip agent memory add SupportRecall --memory-space customer-support-recall --path ./my-agent

Datenform (--output json)​

{
  "Code": "AgentMemoryAdd",
  "Data": {
    "Status": "Memory space added",
    "Name": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "FolderPath": "solution_folder",
    "DynamicFewShotEnabled": true,
    "Id": "a1b2c3d4-0000-0000-0000-000000000070",
    "ReferenceKey": "a1b2c3d4-0000-0000-0000-000000000071",
    "SolutionResource": {
      "Status": "Created",
      "Key": "a1b2c3d4-0000-0000-0000-000000000071",
      "Solution": "./MySolution/MySolution.uipx"
    }
  }
}
{
  "Code": "AgentMemoryAdd",
  "Data": {
    "Status": "Memory space added",
    "Name": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "FolderPath": "solution_folder",
    "DynamicFewShotEnabled": true,
    "Id": "a1b2c3d4-0000-0000-0000-000000000070",
    "ReferenceKey": "a1b2c3d4-0000-0000-0000-000000000071",
    "SolutionResource": {
      "Status": "Created",
      "Key": "a1b2c3d4-0000-0000-0000-000000000071",
      "Solution": "./MySolution/MySolution.uipx"
    }
  }
}

Gedächtnisliste des Agents​

Optionen​

MarkierenStandardZweck
--path <path>.Pfad zum Agent-Projektverzeichnis.

Beispiel​

uip agent memory list --path ./my-agent
uip agent memory list --path ./my-agent

Datenform (--output 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-Agentengedächtnis entfernen​

Argumente​

  • <name> (erforderlich) – Funktionsname, Gedächtnisbereichsname oder zu entfernende ID.

Optionen​

MarkierenZweck
--folder-path <path>Ordnerpfad beim Entfernen nach Gedächtnisbereichsnamen.
--path <path>Pfad zum Agent-Projektverzeichnis (Standard: .).

Beispiel​

uip agent memory remove SupportRecall --path ./my-agent
uip agent memory remove SupportRecall --path ./my-agent

Datenform (--output json)​

{ "Code": "AgentMemoryRemove", "Data": { "Status": "Memory space removed", "Name": "SupportRecall" } }
{ "Code": "AgentMemoryRemove", "Data": { "Status": "Memory space removed", "Name": "SupportRecall" } }

Ein Gedächtnisbereich, der nicht anhand von Name/ID gefunden wurde, schlägt den Befehl mit einem Exitcode ungleich Null fehl.

Hinzufügen eines UIP-Agent-Speicherelements​

Fördern Sie eine Agent-Ausführung in den Runtime-Gedächtnisbereich. Der Elementtyp entscheidet, aus welchen Ausführungsdaten das Element stammt:

--memory-typeQuelleErforderliche Optionen
episodic (oder 0 )Feedback zur Ablaufverfolgung einer Ausführung hinterlassen. Erstellen Sie es mit uip traces feedback create.--feedback-id
escalation (oder 1 )Eine Eskalationsspanne, die der Agent ausgelöst hat. Suchen Sie die Ablaufverfolgungs- und Spannen-IDs mit uip traces spans get.--trace-id, --span-id

Argumente​

  • <name> (erforderlich) – Funktionsname, Gedächtnisbereichsname oder ID.

Optionen​

MarkierenErforderlichZweck
--memory-type <type>jaepisodic (0) oder escalation (1).
--feedback-id <id>für episodicFeedback zum Heraufstufen.
--trace-id <id>für escalationAblaufverfolgung der Eskalationsspanne.
--span-id <id>für escalationZu speichernde Eskalationsspanne.
--answer <text>Antwort mit einem Eskalationselement gespeichert.
--folder-path <path>wenn der Funktionsordner solution_folderOrchestrator-Ordner, in dem sich der Gedächtnisbereich zur Laufzeit befindet. Standardmäßig der Ordner der Agent-Funktion.
--folder-key <key>Orchestrator-Ordnerschlüssel anstelle von --folder-path.
--path <path>Pfad zum Agent-Projektverzeichnis (Standard: .).

Übergeben Sie entweder --folder-path oder --folder-key, nicht beides. Wenn die Funktion auf solution_folder verweist, übergeben Sie den Ordner, in dem die Lösung bereitgestellt wird; uip solution deploy list zeigt es an.

Beispiele​

# Promote feedback on a run as an episodic item
uip agent memory item add SupportRecall --memory-type episodic --feedback-id 2f1e0c3a-0000-0000-0000-000000000010 --folder-path Shared/MySolution --path ./my-agent

# Store an escalation, with its answer, as an escalation item
uip agent memory item add SupportRecall --memory-type escalation --trace-id 3c4d5e6f-0000-0000-0000-000000000020 --span-id 4d5e6f70-0000-0000-0000-000000000021 --answer "Refund within 14 days" --folder-key 5c1eab29-0000-0000-0000-000000000030 --path ./my-agent
# Promote feedback on a run as an episodic item
uip agent memory item add SupportRecall --memory-type episodic --feedback-id 2f1e0c3a-0000-0000-0000-000000000010 --folder-path Shared/MySolution --path ./my-agent

# Store an escalation, with its answer, as an escalation item
uip agent memory item add SupportRecall --memory-type escalation --trace-id 3c4d5e6f-0000-0000-0000-000000000020 --span-id 4d5e6f70-0000-0000-0000-000000000021 --answer "Refund within 14 days" --folder-key 5c1eab29-0000-0000-0000-000000000030 --path ./my-agent

Datenform (--output json)​

{
  "Code": "AgentMemoryItemAdd",
  "Data": {
    "Status": "Memory item added",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "MemoryType": 0,
    "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
    "TraceId": null,
    "SpanId": null,
    "Id": "a1b2c3d4-0000-0000-0000-000000000080"
  }
}
{
  "Code": "AgentMemoryItemAdd",
  "Data": {
    "Status": "Memory item added",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "MemoryType": 0,
    "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
    "TraceId": null,
    "SpanId": null,
    "Id": "a1b2c3d4-0000-0000-0000-000000000080"
  }
}

Für ein Eskalationselement ist FeedbackId null und TraceId und SpanId enthalten die übergebenen Werte.

A feedback is promoted once. Adding a feedback that the memory space already holds fails with ErrorCode: "invalid_argument", and Instructions names the existing item. To promote it again, remove that item first with memory item remove.

Liste der Gedächtniselemente des UIP-Agents​

Listen Sie die Elemente auf, die der Laufzeitgedächtnisbereich in dem Ordner enthält, in dem die Lösung bereitgestellt wird.

Argumente​

  • <name> (erforderlich) – Funktionsname, Gedächtnisbereichsname oder ID.

Optionen​

MarkierenZweck
--memory-type <type>Nur Elemente dieses Typs: episodic (0) oder escalation (1).
--folder-path <path>Orchestrator-Ordner, in dem sich der Gedächtnisbereich zur Laufzeit befindet. Standardmäßig der Ordner der Agent-Funktion; erforderlich, wenn dieser Ordner solution_folder ist.
--folder-key <key>Orchestrator-Ordnerschlüssel anstelle von --folder-path.
--path <path>Pfad zum Agent-Projektverzeichnis (Standard: .).

Beispiel​

uip agent memory item list SupportRecall --folder-path Shared/MySolution --path ./my-agent
uip agent memory item list SupportRecall --folder-path Shared/MySolution --path ./my-agent

Datenform (--output json)​

{
  "Code": "AgentMemoryItemList",
  "Data": [
    {
      "Id": "a1b2c3d4-0000-0000-0000-000000000080",
      "MemoryType": 0,
      "Status": 0,
      "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
      "TraceId": null,
      "SpanId": null,
      "AgentId": "a1b2c3d4-0000-0000-0000-000000000001",
      "UserEmail": "jane.doe@example.com",
      "UpdateTime": "2026-09-29T14:00:00.000Z"
    }
  ]
}
{
  "Code": "AgentMemoryItemList",
  "Data": [
    {
      "Id": "a1b2c3d4-0000-0000-0000-000000000080",
      "MemoryType": 0,
      "Status": 0,
      "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
      "TraceId": null,
      "SpanId": null,
      "AgentId": "a1b2c3d4-0000-0000-0000-000000000001",
      "UserEmail": "jane.doe@example.com",
      "UpdateTime": "2026-09-29T14:00:00.000Z"
    }
  ]
}

Status is 0 for an enabled item, which the agent retrieves at runtime, and 1 for a disabled item.

uip agent memory item disable​

Stop the agent from retrieving items, without deleting them. memory item enable reverses it.

Argumente​

  • <name> (erforderlich) – Funktionsname, Gedächtnisbereichsname oder ID.

Optionen​

MarkierenZweck
--item-id <ids...>Items to act on, by the Id that memory item list shows. Space-separated.
--feedback-id <ids...>Items to act on, by the feedback they were promoted from, instead of --item-id. Space-separated.
--folder-path <path>Orchestrator-Ordner, in dem sich der Gedächtnisbereich zur Laufzeit befindet. Standardmäßig der Ordner der Agent-Funktion; erforderlich, wenn dieser Ordner solution_folder ist.
--folder-key <key>Orchestrator-Ordnerschlüssel anstelle von --folder-path.
--path <path>Pfad zum Agent-Projektverzeichnis (Standard: .).

Pass exactly one of --item-id and --feedback-id. An empty ID is refused. Every ID is checked against the items the memory space holds before anything changes: an ID that the space does not hold fails the command with ErrorCode: "not_found", and no item is changed. If a change of several items fails part way, Instructions names the items that were already changed.

Beispiel​

uip agent memory item disable SupportRecall --item-id a1b2c3d4-0000-0000-0000-000000000080 --folder-path Shared/MySolution --path ./my-agent
uip agent memory item disable SupportRecall --item-id a1b2c3d4-0000-0000-0000-000000000080 --folder-path Shared/MySolution --path ./my-agent

Datenform (--output json)​

{
  "Code": "AgentMemoryItemDisable",
  "Data": {
    "Status": "Memory items disabled",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "Items": [
      {
        "Id": "a1b2c3d4-0000-0000-0000-000000000080",
        "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
        "MemoryType": 0,
        "Status": 1
      }
    ]
  }
}
{
  "Code": "AgentMemoryItemDisable",
  "Data": {
    "Status": "Memory items disabled",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "Items": [
      {
        "Id": "a1b2c3d4-0000-0000-0000-000000000080",
        "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
        "MemoryType": 0,
        "Status": 1
      }
    ]
  }
}

Items lists the items that the command changed, with their status after the change.

uip agent memory item enable​

Let the agent retrieve disabled items again. The arguments, options, and ID checks are the same as for memory item disable.

Beispiel​

uip agent memory item enable SupportRecall --item-id a1b2c3d4-0000-0000-0000-000000000080 --folder-path Shared/MySolution --path ./my-agent
uip agent memory item enable SupportRecall --item-id a1b2c3d4-0000-0000-0000-000000000080 --folder-path Shared/MySolution --path ./my-agent

Datenform (--output json)​

Code is AgentMemoryItemEnable, Data.Status is Memory items enabled, and each row in Data.Items has Status: 0. The other fields are the same as for memory item disable.

Entfernen des Gedächtniselements von UIP-Agents​

Delete items from the memory space. The deletion cannot be undone. To keep an item but stop the agent from retrieving it, use memory item disable.

Argumente​

  • <name> (erforderlich) – Funktionsname, Gedächtnisbereichsname oder ID.

Optionen​

MarkierenZweck
--item-id <ids...>Items to delete, by the Id that memory item list shows. Space-separated.
--feedback-id <ids...>Items to delete, by the feedback they were promoted from, instead of --item-id. Space-separated.
--folder-path <path>Orchestrator-Ordner, in dem sich der Gedächtnisbereich zur Laufzeit befindet. Standardmäßig der Ordner der Agent-Funktion; erforderlich, wenn dieser Ordner solution_folder ist.
--folder-key <key>Orchestrator-Ordnerschlüssel anstelle von --folder-path.
--path <path>Pfad zum Agent-Projektverzeichnis (Standard: .).
-y, --yesRequired. Confirms the deletion. The CLI never prompts; without --yes, the command fails with ErrorCode: "confirmation_required".

The ID checks are the same as for memory item disable: nothing is deleted when the memory space does not hold one of the IDs.

Beispiel​

# Remove the item promoted from a feedback
uip agent memory item remove SupportRecall --feedback-id 2f1e0c3a-0000-0000-0000-000000000010 --folder-path Shared/MySolution --path ./my-agent --yes
# Remove the item promoted from a feedback
uip agent memory item remove SupportRecall --feedback-id 2f1e0c3a-0000-0000-0000-000000000010 --folder-path Shared/MySolution --path ./my-agent --yes

Datenform (--output json)​

{
  "Code": "AgentMemoryItemRemove",
  "Data": {
    "Status": "Memory items removed",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "Items": [
      {
        "Id": "a1b2c3d4-0000-0000-0000-000000000080",
        "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
        "MemoryType": 0,
        "Status": 0
      }
    ]
  }
}
{
  "Code": "AgentMemoryItemRemove",
  "Data": {
    "Status": "Memory items removed",
    "Memory": "SupportRecall",
    "MemorySpace": "customer-support-recall",
    "MemorySpaceId": "a1b2c3d4-0000-0000-0000-000000000090",
    "FolderPath": "Shared/MySolution",
    "FolderKey": "5c1eab29-0000-0000-0000-000000000030",
    "Items": [
      {
        "Id": "a1b2c3d4-0000-0000-0000-000000000080",
        "FeedbackId": "2f1e0c3a-0000-0000-0000-000000000010",
        "MemoryType": 0,
        "Status": 0
      }
    ]
  }
}

Items lists the deleted items.

  • uip agent validate – Nach der Bearbeitung der Speicherkonfiguration erneut ausführen.
  • uip agent refresh – Generiert abgeleitete Dateien neu, nachdem ein Gedächtnisbereich hinzugefügt wurde.

Siehe auch​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben