Skip to content

Conversation

@bhaskargurram-ai
Copy link

Fixes #7084

Summary

Corrects a typo in the migration guide where RedisCacheStore was used instead of the correct class name RedisStore.

Problem

Users trying to use Redis cache following the migration guide example would encounter an error because RedisCacheStore doesn't exist - the correct class is RedisStore.

Changes

  • File: python/packages/autogen-agentchat/docs/src/user-guide/agentchat-user-guide/migration-guide.md
  • Line 217: Changed RedisCacheStoreRedisStore

Verification

  • ✅ Line 214 imports the correct class: from autogen_ext.cache_store.redis import RedisStore
  • ✅ Line 188 references the correct class: RedisStore
  • ✅ Line 217 now matches the correct import

Before:

# cache_store = RedisCacheStore[CHAT_CACHE_VALUE_TYPE](redis_instance)

After:

# cache_store = RedisStore[CHAT_CACHE_VALUE_TYPE](redis_instance)

This ensures users can correctly copy-paste the Redis cache example without encountering a NameError.

Thanks to @mhou7712 for reporting this issue!

Changed 'RedisCacheStore' to 'RedisStore' on line 217 to match
the correct import statement on line 214.

The correct class is: from autogen_ext.cache_store.redis import RedisStore

Fixes microsoft#7084
@bhaskargurram-ai
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RedisStore example in "Migration Guide for v0.2 to v0.4"

1 participant