Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build/components/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
PREFIXES = {
'python': '#',
'node.js': '//',
'typescript': '//',
'ioredis': '//',
'java': '//',
'java-sync': '//',
Expand Down
10 changes: 10 additions & 0 deletions build/local_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
EXTENSION_TO_LANGUAGE = {
'.py': 'python',
'.js': 'node.js',
'.ts': 'typescript',
'.go': 'go',
'.c': 'c',
'.h': 'c',
Expand Down Expand Up @@ -101,13 +102,20 @@ def get_client_name_from_language_and_path(language: str, path: str,

For Python (.py) files, override based on path substrings:
- If 'redisvl' in path -> RedisVL
- If 'agent-memory' in path -> Agent Memory (Python)
- Otherwise -> Python

For TypeScript (.ts) files, override based on path substrings:
- If 'agent-memory' in path -> Agent Memory (TypeScript)

Substring checks are case-sensitive and can appear anywhere in the path.
"""
if language == 'node.js':
if 'ioredis' in path:
return 'ioredis'
if language == 'typescript':
if 'agent-memory' in path:
return 'Agent Memory (TypeScript)'
if language == 'java':
if 'lettuce-sync' in path:
return 'Lettuce-Sync'
Expand All @@ -123,6 +131,8 @@ def get_client_name_from_language_and_path(language: str, path: str,
if language == 'python':
if 'redisvl' in path:
return 'RedisVL'
if 'agent-memory' in path:
return 'Agent Memory (Python)'
if language == 'c#':
variant = 'Async' if 'async' in path else 'Sync'
client = 'NRedisStack' if is_nredisstack_example(content) else 'SE.Redis'
Expand Down
4 changes: 3 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ gitHubRepo = "https://github.com/redis/docs"
aiSchemaVersion = 2

# Display and sort order for client examples
clientsExamples = ["Python", "Node.js", "ioredis", "Java-Sync", "Lettuce-Sync", "Java-Async", "Java-Reactive", "Go", "C", "C#-Sync (NRedisStack)", "C#-Async (NRedisStack)", "C#-Sync (SE.Redis)", "C#-Async (SE.Redis)", "RedisVL", "PHP", "Ruby", "Rust-Sync", "Rust-Async"]
clientsExamples = ["Python", "Node.js", "ioredis", "Java-Sync", "Lettuce-Sync", "Java-Async", "Java-Reactive", "Go", "C", "C#-Sync (NRedisStack)", "C#-Async (NRedisStack)", "C#-Sync (SE.Redis)", "C#-Async (SE.Redis)", "RedisVL", "PHP", "Ruby", "Rust-Sync", "Rust-Async", "Agent Memory (Python)", "Agent Memory (TypeScript)"]
searchService = "/convai/api/search-service"
ratingsService = "/docusight/api/rate/docs"

Expand Down Expand Up @@ -120,6 +120,8 @@ rdi_current_version = "2.0.0"
"Ruby"={quickstartSlug="redis-rb", langId="ruby", clientId="redis-rb", clientName="redis-rb", mappingClientId="redis_rb"}
"Rust-Sync"={quickstartSlug="rust", langId="rust", clientId="redis-rs", clientName="redis-rs", mappingClientId="redis_rs_sync"}
"Rust-Async"={quickstartSlug="rust", langId="rust", clientId="redis-rs", clientName="redis-rs", mappingClientId="redis_rs_async"}
"Agent Memory (Python)"={quickstartSlug="", langId="python", clientId="agent-memory-python", clientName="Agent Memory (Python)", mappingClientId=""}
"Agent Memory (TypeScript)"={quickstartSlug="", langId="typescript", clientId="agent-memory-typescript", clientName="Agent Memory (TypeScript)", mappingClientId=""}

# Mount directories for duplicate content
[module]
Expand Down
9 changes: 4 additions & 5 deletions content/develop/ai/context-engine/agent-memory/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ When enabled, automatic summarization compacts session memory by summarizing old

Access Redis Agent Memory through the Python and TypeScript SDKs or its REST API. It works with any agent framework or LLM provider.

<div class="grid grid-cols-1 md:grid-cols-4 gap-6 my-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 my-8">
{{< tile-card icon="images/icon_logo/icon-data-structures-64-midnight.png" title="Overview" description="How session and long-term memory work, and what runs in the background" url="/develop/ai/context-engine/agent-memory/overview" >}}
{{< tile-card icon="images/dev/icons/icon-redis-code-64-duotone.png" title="Python quickstart" description="Get started with Redis Agent Memory in Python" url="/develop/ai/context-engine/agent-memory/python-sdk-quickstart" >}}
{{< tile-card icon="images/dev/icons/icon-redis-code-64-duotone.png" title="TypeScript quickstart" description="Get started with Redis Agent Memory in TypeScript" url="/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart" >}}
{{< tile-card icon="images/dev/icons/icon-redis-code-64-duotone.png" title="SDK quickstart" description="Get started with Redis Agent Memory in Python or TypeScript" url="/develop/ai/context-engine/agent-memory/sdk-quickstart" >}}
{{< tile-card icon="images/dev/icons/icon-redis-code-64-duotone.png" title="REST quickstart" description="Get started with Redis Agent Memory using curl" url="/develop/ai/context-engine/agent-memory/rest-api-quickstart" >}}
</div>

Expand Down Expand Up @@ -123,12 +122,12 @@ After your Redis Agent Memory service is ready, choose a client. Each quickstart
<div class="p-5 border border-redis-pen-300 rounded-lg">
<h3 class="text-redis-ink-900 font-semibold mb-3">Python SDK</h3>
<p>Explore the Redis Agent Memory workflow with the Python SDK.</p>
<p><a href="{{< relref "/develop/ai/context-engine/agent-memory/python-sdk-quickstart" >}}">Open the Python quickstart</a></p>
<p><a href="{{< relref "/develop/ai/context-engine/agent-memory/sdk-quickstart" >}}">Open the Python quickstart</a></p>
</div>
<div class="p-5 border border-redis-pen-300 rounded-lg">
<h3 class="text-redis-ink-900 font-semibold mb-3">TypeScript SDK</h3>
<p>Explore the Redis Agent Memory workflow with the TypeScript SDK.</p>
<p><a href="{{< relref "/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart" >}}">Open the TypeScript quickstart</a></p>
<p><a href="{{< relref "/develop/ai/context-engine/agent-memory/sdk-quickstart" >}}">Open the TypeScript quickstart</a></p>
</div>
<div class="p-5 border border-redis-pen-300 rounded-lg">
<h3 class="text-redis-ink-900 font-semibold mb-3">REST API</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Redis Agent Memory can automatically summarize older session events and extract

| Client | Use it when | Package and quickstart |
|:-------|:------------|:-----------------------|
| Python SDK | Your application or agent uses Python. | Install [`redis-agent-memory`](https://pypi.org/project/redis-agent-memory/) and follow the [Python SDK quickstart](/content/develop/ai/context-engine/agent-memory/python-sdk-quickstart.md). |
| TypeScript SDK | Your application or agent uses JavaScript or TypeScript. | Install [`@redis-iris/agent-memory`](https://www.npmjs.com/package/@redis-iris/agent-memory) and follow the [TypeScript SDK quickstart](/content/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart.md). |
| Python SDK | Your application or agent uses Python. | Install [`redis-agent-memory`](https://pypi.org/project/redis-agent-memory/) and follow the [SDK quickstart](/content/develop/ai/context-engine/agent-memory/sdk-quickstart.md). |
| TypeScript SDK | Your application or agent uses JavaScript or TypeScript. | Install [`@redis-iris/agent-memory`](https://www.npmjs.com/package/@redis-iris/agent-memory) and follow the [SDK quickstart](/content/develop/ai/context-engine/agent-memory/sdk-quickstart.md). |
| REST API | You need language-independent HTTP access or don't want an SDK dependency. | No package required. Follow the [REST API quickstart](/content/develop/ai/context-engine/agent-memory/rest-api-quickstart.md). |

## Connect to a Redis Agent Memory service
Expand Down Expand Up @@ -173,8 +173,7 @@ Follow any of the client quickstarts to create and search long-term memory. For

## References

* [Python SDK quickstart](/content/develop/ai/context-engine/agent-memory/python-sdk-quickstart.md)
* [TypeScript SDK quickstart](/content/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart.md)
* [SDK quickstart](/content/develop/ai/context-engine/agent-memory/sdk-quickstart.md)
* [Python SDK reference](https://pypi.org/project/redis-agent-memory/)
* [TypeScript SDK reference](https://www.npmjs.com/package/@redis-iris/agent-memory)
* [REST API quickstart](/content/develop/ai/context-engine/agent-memory/rest-api-quickstart.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Try different messages to see how they change what the service remembers. Open *
## Next steps

- [Create an Agent Memory service](/content/operate/iris/agent-memory/create-service.md) on Redis Cloud.
- Follow the [REST API quickstart](/content/develop/ai/context-engine/agent-memory/rest-api-quickstart.md) or the [Python SDK quickstart](/content/develop/ai/context-engine/agent-memory/python-sdk-quickstart.md) to try the same flow with a real service.
- Follow the [REST API quickstart](/content/develop/ai/context-engine/agent-memory/rest-api-quickstart.md) or the [Python SDK quickstart](/content/develop/ai/context-engine/agent-memory/sdk-quickstart.md) to try the same flow with a real service.
4 changes: 2 additions & 2 deletions content/develop/ai/context-engine/agent-memory/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ Both paths are supported. Use direct writes for bulk imports or external knowled

## Next steps

- Try the [Agent Memory interactive demo](content/develop/ai/context-engine/agent-memory/interactive-demo.md) to watch session memory and long-term memory change during a conversation.
- Try the [Agent Memory interactive demo](/content/develop/ai/context-engine/agent-memory/interactive-demo.md) to watch session memory and long-term memory change during a conversation.
- [Developer guide]({{< relref "/develop/ai/context-engine/agent-memory/developer-guide" >}}) to connect an application and start writing session events.
- [Python SDK quickstart]({{< relref "/develop/ai/context-engine/agent-memory/python-sdk-quickstart" >}}), [TypeScript SDK quickstart]({{< relref "/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart" >}}), or [REST API quickstart]({{< relref "/develop/ai/context-engine/agent-memory/rest-api-quickstart" >}}) to see session memory, extraction, and summarization in action.
- [SDK quickstart]({{< relref "/develop/ai/context-engine/agent-memory/sdk-quickstart" >}}) or [REST API quickstart]({{< relref "/develop/ai/context-engine/agent-memory/rest-api-quickstart" >}}) to see session memory, extraction, and summarization in action.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ See [sensitive-data exclusions](/content/operate/iris/agent-memory/create-servic

## Next steps

* Follow the [Python SDK quickstart](/content/develop/ai/context-engine/agent-memory/python-sdk-quickstart.md) or [TypeScript SDK quickstart](/content/develop/ai/context-engine/agent-memory/typescript-sdk-quickstart.md).
* Follow the [SDK quickstart](/content/develop/ai/context-engine/agent-memory/sdk-quickstart.md).
* Learn when to [create long term memories directly](/content/develop/ai/context-engine/agent-memory/developer-guide.md#create-long-term-memories).
* Use the [Redis Agent Memory API reference](/content/develop/ai/context-engine/agent-memory/api-reference.md) for endpoint and schema details.
Loading
Loading