Skip to content
Discussion options

You must be logged in to vote

Hi, @kawolum

_enforce_app_name_alignment is just a guardrail. It compares the runners app_name to the agent’s folder name (under agents/) and logs a warning to help you debug “session not found” issues. It does not block run_debug.

InMemoryRunner defaults app_name to "InMemoryRunner" just so you can call run_debug without passing anything. The sessions are created and read with that same name. The warning is only about the folder mismatch.

To silence the warning, pass app_name (like, InMemoryRunner(agent, app_name="my_agent")) or put the agent in App(name="my_agent", root_agent=agent). You would not need to move the agent into an InMemoryRunner directory.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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