Skip to content
Interaction Profiles

Interaction Profiles

An interaction profile takes effect only when the agent runs in a mesh that has a Memory Store. A profile describes how an agent reads and writes memory. It sets the conversation history and the memories that go in the prompt. It also sets the tools that the agent calls to search and write memory. An agent can use several profiles. Memory is versioned: if you add or remove a profile, you make a new agent version. The profiles read and write a Memory Store.

Quick Reference

Interaction Profile

FieldPurposeGuidance
NameIdentifies the profile

Agents reference profiles by name. Name it for the behavior, for example “support-history” or “user-preferences”.

DescriptionNotes for your team

Optional.

Allow expansionLets the agent read around results

Gives the agent tools to read further around what an injection or a query tool returned; the chunks near a chunk, the facts under an observation, and the chunks a fact came from.

Conversation History

FieldPurposeGuidance
SelectionWhich turns go in the prompt

Newest puts the most recent turns in the prompt. Most relevant searches past turns with the request text, or with a fixed text you give. Needs a Memory Store with Ingest conversations on.

Token budgetCaps the history

The most tokens of history to put in the prompt on each request. Long histories raise cost and can degrade focus.

Context Injections

FieldPurposeGuidance
NameIdentifies the injection

Shown in traces as the memory section name.

Context documentationTells the agent what the memories are

A sentence placed above the injected memories so the model knows how to use them.

RecordsWhich record types to search

Any of Facts, Observations and Chunks.

TaggedWhich memories qualify

All memories, or only those with given tags. A tag value can be fixed or come from a request tag, which selects a user’s slice. A request tag here means the tags of the request and of its conversation together. See Tags.

Searched withThe query text

The request, or a fixed text you give.

Token budgetCaps the injection

The most tokens of memories to add on each request.

Query Tools

FieldPurposeGuidance
Tool nameThe tool the agent calls

A verb phrase, for example search_user_history.

Tool instructionsWhen to call it

Shown to the agent as the tool description. Say what the memory holds and when a search helps.

Records and TaggedSearch scope

Same as for context injections.

ReturnsResult size

One amount of tokens, or named effort levels such as “quick” and “thorough”, each with its own token count, that the agent chooses from.

Write Tools

FieldPurposeGuidance
Tool nameThe tool the agent calls

A verb phrase, for example remember_preference.

Tool instructionsWhen to write

Shown to the agent as the tool description. Say what is worth remembering.

TaggedTags on written memories

The tags stamped on each fact the agent writes. Values can be fixed, or copied from request tags by key, or all request tags can be copied. Request tags here include the conversation tags.

Prompt versus tools

Conversation history and context injections add text to every request. They need no tool call.

Query tools and write tools run only when the agent calls them.

Use an injection for memories that every request needs. Use a tool when the agent must decide whether to read or write memory.

Selecting a user’s memories

Tags select the memories of one user. Memory reads the conversation tags and the request tags together, so either can hold the user tag. Follow these steps.

  1. Tag the conversation or the request with user=alice. In the Conversation API, set "tags": [{"name": "user", "value": "alice"}] in the body. In AG-UI and MCP, send the header Partite-Conversation-Tags: user=alice or Partite-Request-Tags: user=alice. When callers come through an access point, set the tag from their token with a boundary, so they can’t read other users’ memories.
  2. A Sliced scope that uses the key user files each new fact under user=alice.
  3. An injection has a tag value that comes from the request tag user. This injection reads only the memories of Alice.

For more about request tags, see Conversation API.

Related