Skip to content

Conversation

@kylediaz
Copy link

Hello from the Chroma team 👋

We saw your tweet announcing this. We love using AI SDK, so we wanted to add a Chroma provider so we can use ai-sdk-tools internally.

I tested this memory provider's functions individually and it works as expected. I tried using it with an Agent, but we can't seem to get it to use persistent memory. We used this Agent config:

const memoryProvider = new ChromaMemoryProvider(client, ef);
const agent = new Agent<ChatContext>({
  ...
  memory: {
    provider: memoryProvider,
    workingMemory: {
      enabled: true,
      scope: "chat",
    },
    history: {
      enabled: true,
      limit: 10,
    },
    chats: {
      enabled: true,
    }
  },
  handoffs: [ subagent ]
});
...
const response = agent.toUIMessageStream({
  messages: [
    {
      role: "user",
      content: "What is the meaning of life?",
    }
  ],
  context: {
    chatId,
    userId,
  },
});

Also, does this project have unit tests?

@vercel
Copy link

vercel bot commented Oct 13, 2025

@kylediaz is attempting to deploy a commit to the Pontus Abrahamsson's projects Team on Vercel.

A member of the Team first needs to authorize it.

@kylediaz
Copy link
Author

@pontusab we're really interested in adding chroma to ai-sdk-tools. can we work together to get this added?

@pontusab
Copy link
Contributor

sorry for the delay, and yes 100% i'm in the process of designing the APIs for this to be much better and flexible, let me get back to
this once #55 is merged

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.

2 participants