Skip to content

Mem0#192

Merged
moonpyt merged 7 commits intoXSpoonAi:mainfrom
helloissariel:main
Nov 28, 2025
Merged

Mem0#192
moonpyt merged 7 commits intoXSpoonAi:mainfrom
helloissariel:main

Conversation

@helloissariel
Copy link
Copy Markdown
Contributor

@helloissariel helloissariel commented Nov 25, 2025

1.Build a personalized Agent AI using Spoon for conversation flow and Mem0 for memory retention(spoon-core/examples/mem0_agent_demo.py)

2.Mem0 provides a suite of tools for storing, searching, and retrieving memories, enabling agents to maintain context and learn from past interactions. The tools are built as Spoon toolkit, making them easily integrable with any AI agent implementation.(spoon-core/examples/mem0_tool_agent.py)

3.Some models occasionally return arguments: null instead of an empty JSON object {}.In _convert_response inside openai_compatible_provider.py, the method passes this None from the API directly into the Function object when constructing it.In spoon_ai/schema.py, the Function model usually declares arguments: str. When Pydantic receives None for this field, it raises a validation error.
Solution:Add defensive logic in the _convert_response method: if arguments is None, force it to "{}" before constructing the Function object.(spoon-core/spoon_ai/llm/providers/openai_compatible_provider.py)

4.Updated pyproject.toml (and requirements.txt) to add mem0ai under [project.optional-dependencies].

@moonpyt moonpyt merged commit 4f45016 into XSpoonAi:main Nov 28, 2025
1 check passed
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