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

Getting 'AgentState' object is notsubscriptable when doing self.agent_state['human'] inside a custom tool function #1800

Open
distributev opened this issue Sep 29, 2024 · 1 comment

Comments

@distributev
Copy link

distributev commented Sep 29, 2024

I also tried with

self.agent_state.memory.get_block("human").value

and different other ways I found through the code base but I got various error with all.

@distributev
Copy link
Author

I managed to do it by trial and error

self.agent_state.state['memory']['human']['value']

It is better to document this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant