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

refactor: simplify Agent.step inputs to Message or List[Message] only #1879

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Oct 13, 2024

Simplify Agent.step inputs to Message or List[Message] only

Note: previously List was not a valid input, despite the API docs making it seem like passing a list was possible

Added an additional convenience function Agent.step_user_message that wraps a user message (eg "hello") in the JSON metadata (eg {"type": "user_message", "message", "hi"})

letta/agent.py Show resolved Hide resolved
@sarahwooders sarahwooders merged commit cc616ef into main Oct 14, 2024
17 checks passed
@cpacker cpacker deleted the refactor-step-input branch October 16, 2024 03:55
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