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

fix: Deprecate in memory function stores in agent.py #2271

Merged

Conversation

mattzh72
Copy link
Collaborator

@mattzh72 mattzh72 commented Dec 17, 2024

Description

Before, we were holding self.functions and self.functions_python in memory via link_tools. Here we get rid of link tools, and retrieve the tools when we need them from agent_state.

Small change - we directly pass in the actor object into calls, to reduce repeatedly retrieving the user based on the user_id.

Testing

Because this is a refactor, we rely on existing tests.

@mattzh72 mattzh72 merged commit c1f7b32 into main Dec 18, 2024
39 of 40 checks 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