UiPath Documentation
uipath-cli
2026.10
false
Guide de l'utilisateur de UiPath CLI

Mémoire d’agent UIP

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.

Synthèse​

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

Toutes les invocations respectent les options globales (--output, --output-filter, --log-level, --log-file). Les codes de sortie suivent le contrat standard.

Ajouter une mémoire d’agent uip​

Associez un espace de mémoire à l’agent.

Arguments​

  • <name> (requis) : le nom de la fonctionnalité à utiliser dans l'agent.

Options​

DrapeauDefaultRequisObjectif
--memory-space <name>—ouiNom de l’espace de mémoire à associer.
--folder-path <path>solution_folder à l'intérieur d'une solutionen dehors d'une solutionChemin d’accès au dossier où se trouve l’espace de mémoire. Requis lorsque le projet d’agent ne se trouve pas à l’intérieur d’une solution.
--reference-key <key>—Clé de ressource de solution d’espace de mémoire. Lorsqu'elle est omise, la clé est résolue à partir de la solution englobante.
--description <desc>—Description de l’espace de mémoire.
--threshold <n>0Seuil du score de récupération.
--result-count <n>3Nombre de résultats à récupérer (entier positif).
--search-mode <mode>hybridhybrid ou semantic.
--field <name=weight>—Charger le champ d’entrée. Répétable.
--disable-dynamic-few-shotdésactivéAssociez l'espace de mémoire sans activer la récupération dynamique en quelques exemples (activé par défaut).
--path <path>.Chemin d’accès au répertoire du projet d’agent.

Ressource de solution​

Lorsque le projet d'agent se trouve dans une solution et que --reference-key est omis, memory add lie la fonctionnalité à la ressource d'espace de mémoire que la solution déclare. Data.SolutionResource.Status rapporte le résultat:

État (Status)Signification
NotInSolutionAucune solution ne entoure le projet. Rien n’est déclaré ou lié.
LinkedLa solution déclare déjà cet espace de mémoire. La fonctionnalité porte sa clé.
CreatedL’espace de mémoire se trouve dans solution_folder et la solution ne l’a pas déclaré. La commande le déclare dans la solution et lie la fonctionnalité.
NotDeclaredL’espace de mémoire se trouve dans un dossier autre que solution_folder et la solution ne le déclare pas. Instructions donne à la commande uip solution resources add --source remote d'exécuter.
ProvidedLa clé provient de --reference-key.

Si l’écriture de la fonctionnalité échoue après que la commande a déclaré l’espace de mémoire dans la solution, la commande supprime à nouveau cette déclaration. Reportez-vous aux ressources de la solution uip pour gérer directement les ressources de la solution.

Exemples​

# 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

Format des données (--sortie 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"
    }
  }
}

Liste des mémoires d’agent UIP​

Options​

DrapeauDefaultObjectif
--path <path>.Chemin d’accès au répertoire du projet d’agent.

Exemple​

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

Format des données (--sortie 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" }
  ]
}

Suppression de la mémoire d’agent uip​

Arguments​

  • <name> (requis) : le nom de la fonctionnalité, le nom de l'espace de mémoire ou l'ID à supprimer.

Options​

DrapeauObjectif
--folder-path <path>Chemin d’accès au dossier, lors de la suppression par nom d’espace de mémoire.
--path <path>Chemin d'accès au répertoire du projet d'agent (par défaut .).

Exemple​

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

Format des données (--sortie json)​

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

Un espace de mémoire introuvable par nom/ID échoue la commande avec un code de sortie non nul.

Ajouter un élément de mémoire d’agent uip​

Promouvoir l'exécution d'un agent dans l'espace de mémoire de runtime. Le type d'élément décide des données d'exécution provenant de l'élément:

--memory-typeSourceOptions requises
episodic (ou 0 )Commentaires laissés sur le traçage d'une exécution. Créez-le avec uip traces feedback create.--feedback-id
escalation (ou 1 )Une plage d’escalade déclenchée par l’agent. Recherchez les ID de traçage et d'étendue avec uip traces spans get--trace-id, --span-id

Arguments​

  • <name> (requis) : le nom de la fonctionnalité, le nom de l'espace de mémoire ou l'ID.

Options​

DrapeauRequisObjectif
--memory-type <type>ouiepisodic (0) ou escalation (1).
--feedback-id <id>Pour episodicCommentaires à promouvoir.
--trace-id <id>Pour escalationTraçage de la période d’escalade.
--span-id <id>Pour escalationPlage d’escalade à stocker.
--answer <text>Réponse stockée avec un élément d'escalade.
--folder-path <path>lorsque le dossier de fonctionnalités est solution_folderDossier Orchestrator dans lequel se trouve l'espace de mémoire au moment de l'exécution. Par défaut, le dossier de la fonctionnalité d'agent.
--folder-key <key>Clé de dossier Orchestrator, au lieu de --folder-path.
--path <path>Chemin d'accès au répertoire du projet d'agent (par défaut .).

Transmettez --folder-path ou --folder-key, pas les deux. Lorsque la fonctionnalité pointe sur solution_folder, indiquez le dossier dans lequel la solution est déployée; uip solution deploy list le montre.

Exemples​

# 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

Format des données (--sortie 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"
  }
}

Pour un élément d'escalade, FeedbackId est null, et TraceId et SpanId portent les valeurs transmises.

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 des éléments de mémoire d’agent uip​

Répertoriez les éléments que contient l’espace de mémoire de runtime, dans le dossier où la solution est déployée.

Arguments​

  • <name> (requis) : le nom de la fonctionnalité, le nom de l'espace de mémoire ou l'ID.

Options​

DrapeauObjectif
--memory-type <type>Uniquement les éléments de ce type: episodic (0) ou escalation (1).
--folder-path <path>Dossier Orchestrator dans lequel se trouve l'espace de mémoire au moment de l'exécution. La valeur par défaut est le dossier de la fonctionnalité d'agent; requis lorsque ce dossier est solution_folder.
--folder-key <key>Clé de dossier Orchestrator, au lieu de --folder-path.
--path <path>Chemin d'accès au répertoire du projet d'agent (par défaut .).

Exemple​

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

Format des données (--sortie 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.

Arguments​

  • <name> (requis) : le nom de la fonctionnalité, le nom de l'espace de mémoire ou l'ID.

Options​

DrapeauObjectif
--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>Dossier Orchestrator dans lequel se trouve l'espace de mémoire au moment de l'exécution. La valeur par défaut est le dossier de la fonctionnalité d'agent; requis lorsque ce dossier est solution_folder.
--folder-key <key>Clé de dossier Orchestrator, au lieu de --folder-path.
--path <path>Chemin d'accès au répertoire du projet d'agent (par défaut .).

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.

Exemple​

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

Format des données (--sortie 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.

Exemple​

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

Format des données (--sortie 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.

Supprimer l’élément de mémoire d’agent uip​

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.

Arguments​

  • <name> (requis) : le nom de la fonctionnalité, le nom de l'espace de mémoire ou l'ID.

Options​

DrapeauObjectif
--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>Dossier Orchestrator dans lequel se trouve l'espace de mémoire au moment de l'exécution. La valeur par défaut est le dossier de la fonctionnalité d'agent; requis lorsque ce dossier est solution_folder.
--folder-key <key>Clé de dossier Orchestrator, au lieu de --folder-path.
--path <path>Chemin d'accès au répertoire du projet d'agent (par défaut .).
-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.

Exemple​

# 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

Format des données (--sortie 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 — réexécuté après modification de la configuration de la mémoire.
  • uip agent refresh — régénère les fichiers dérivés après l'ajout d'un espace de mémoire.

Voir également​

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour