Permission denied on state #229
Answered
by
boyangsvl
jhammarstedt
asked this question in
Q&A
-
I have different vector databases and I want to be able to dynamically set them and call the VertexAiRagRetrival tool. In the examples I see it's only set from .env but looking at all samples it looks very doable to set it from state. However I keep getting
I use a DatabaseSessionFactory so I have it saved, and the print works fine but I cannot access later.
|
Beta Was this translation helpful? Give feedback.
Answered by
boyangsvl
May 3, 2025
Replies: 1 comment 2 replies
-
Using state variables in tool initialization is not supported. You can create your own tool which reads from the state and use that value to create a RAG tool yourself. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
boyangsvl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using state variables in tool initialization is not supported. You can create your own tool which reads from the state and use that value to create a RAG tool yourself.