agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/packages/redis/AGENTS.md

agent-framework / redis

AGENTS.md14k starsChanged 10 months agoMITView on GitHub

Redis-based storage for agent threads and context. - RedisHistoryProvider - Persistent chat history provider using scoped Redis keys. Scoped mode requires an application ID and non-empty session ID, and can additionally isolate tenants and agents. Use explicit legacy mode only while deliberately migrating historical keys; scoped mode never accesses them automatically. It can construct an owned client from a URL or credential provider, or borrow a standalone async Redis client configured with decode_responses=True; borrowed clients remain caller-owned. - RedisContextProvider -…

  • Reads credentials

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

Files
AGENTS.md

Redis Package (agent-framework-redis)

Redis-based storage for agent threads and context.

Main Classes

  • RedisHistoryProvider - Persistent chat history provider using scoped Redis keys. Scoped mode requires an application ID and non-empty session ID, and can additionally isolate tenants and agents. Use explicit legacy mode only while deliberately migrating historical keys; scoped mode never accesses them automatically. It can construct an owned client from a URL or credential provider, or borrow a standalone async Redis client configured with decode_responses=True; borrowed clients remain caller-owned.
  • RedisContextProvider - Context provider with Redis-backed retrieval
  • RedisSettings - TypedDict connection settings for vector stores, resolved with core load_settings from explicit URL overrides, an optional .env file, or REDIS_URL. URLs use SecretString to mask credentials.
  • RedisCollection / RedisStore - Experimental generic vector storage and search over native HASH and JSON documents. _vector_store.py contains settings, connection/codec/schema/filter helpers, the collection, and the store, separate from the preexisting history/context providers. _create_client shares AF settings resolution and requires database 0, strict UTF-8 encoding, RESP2, and binary responses for URL-created and borrowed clients. _RedisNamespaceNames owns the persisted index/document prefix format and canonical index-name parsing; RedisCollection._prepare_filter validates support and translates portable filters to native Redis queries. Requires Redis Search with INDEXMISSING/INDEXEMPTY support. Nonempty CRUD/search operations recheck index existence and schema. These checks observe completed external lifecycle changes but are not atomic with subsequent operations. See README for the per-type native filter restrictions, HASH null rejection, and distance units.

Vector connector tests

From python/, run the connector's deterministic unit tests with:

uv run --no-sync pytest packages/redis/tests/test_vector_store.py packages/redis/tests/test_vector_settings.py -m "not integration"

Set REDIS_VECTOR_TEST_URL to an explicitly disposable Search/JSON instance and select -m integration to run integration tests in tests/test_vector_store.py. Automated live tests use Redis 8.0.3, pinned in both CI workflows. A configured but insufficient server fails; only an unset URL skips them. Tests create unique namespaces and clean only their own indexes/keys, never FLUSHALL. Coverage includes both formats and 1000-record batches with two 1536-dimensional vectors without embedding API calls.

Usage

from agent_framework.redis import RedisContextProvider, RedisHistoryProvider

context_provider = RedisContextProvider(redis_url="redis://localhost:6379")
history_provider = RedisHistoryProvider(
    redis_url="redis://localhost:6379", application_id="my-app", agent_id="my-agent"
)

Import Path

from agent_framework.redis import RedisContextProvider, RedisHistoryProvider
# or directly:
from agent_framework_redis import RedisContextProvider, RedisHistoryProvider

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.