Skip to content

Best way to get access to states inside prompt when running agents #710

Answered by Jacksunwei
kanlanc asked this question in Q&A
Discussion options

You must be logged in to vote

If you have a state key 'some_var', you can inject it into instruction via {some_var}.

See a reference in:

https://github.com/google/adk-python/blob/main/contributing/samples/memory/agent.py#L36

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jacksunwei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants