Skip to content

New Feature: GoodMem Memory Connector - centralized memory API for agents #13626

@MuaazWahid

Description

@MuaazWahid

name: GoodMem Memory Connector
about: Simplify agentic memory management in Semantic Kernel by powering agents with Good Memory.


Before an agent can remember anything, developers have to manage embedding services, models, and dimensions across collections.

GoodMem removes that entire setup. Send text in, get semantically relevant results back (embedding pipeline included). GoodMem is a lightning-fast memory API for AI agents to easily read & write persistent memory for AI systems.

without GoodMem

# 1. Pick, configure, and maintain an embedding service
embedding_service = OpenAITextEmbedding(
    ai_model_id="text-embedding-3-small",
    api_key=OPENAI_API_KEY
)

# 2. Stand up a vector store and wire in the embedder
store = InMemoryVectorStore(embedding_service=embedding_service)
collection = store.get_collection("agent-memory", record_type=Memory)

# 3. Manually ensure embedding dimensions match your model
# 4. Begin to write agent logic

with GoodMem

async with GoodMemCollection(record_type=Memory, collection_name="agent-memory") as collection:
    await collection.upsert(memory_list)
    agent = ChatCompletionAgent(
        name="MemoryAgent",
        service=OpenAIChatCompletion(ai_model_id=openai_model),
        instructions=("Always search memory before answering factual questions."),
        function_choice_behavior=FunctionChoiceBehavior.Auto(),
        plugins=[collection.as_plugin(name="memory")],
    )

https://github.com/PAIR-Systems-Inc/goodmem-semantic-kernel
https://goodmem.ai/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions