Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autouse memory #1027

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Add autouse memory #1027

merged 3 commits into from
Jan 21, 2025

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Jan 21, 2025

Add autouse memory to avoid tool calls if possible.

import marvin

marvin.run('remember the user name is XYZ', memories=[marvin.Memory('user')])

# this is a new thread, with no history
result = marvin.run('What was the user name?', memories=[marvin.Memory('user', auto_use=True)])

# prints XYZ, no tool calls were made
print(result)

@jlowin jlowin merged commit 361cd4d into marvin-3 Jan 21, 2025
3 of 4 checks passed
@jlowin jlowin deleted the auto-use-memory branch January 21, 2025 16:00
@github-actions github-actions bot added enhancement New feature or request feature Pull requests that add features labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature Pull requests that add features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant