'Context variable not found: user_name
.
#2064
Sidhupaji-2004
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting this error in spite of setting up the user_name in the initial_state. Any idea how to fix this ? Need this fixed ASAP.
from customer_service_agent.agent import root_agent
from dotenv import load_dotenv
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
import asyncio
from utils import add_user_query_to_history, call_agent_async
load_dotenv()
session_service = InMemorySessionService()
initial_state = {
"user_name": "Siddharth Sen",
"purchased_courses": [],
"interaction_history": []
}
async def main_async():
APP_NAME = "Customer Support"
USERID = "aiwithsid"
def main():
"""Entry point for the application."""
asyncio.run(main_async())
if name == "main":
main()
Beta Was this translation helpful? Give feedback.
All reactions