Skip to content

fix(runner): default InMemoryRunner appName to match Python SDK - #1485

Open
mithun-sudo wants to merge 1 commit into
google:mainfrom
mithun-sudo:fix/inmemory-runner-default-app-name
Open

fix(runner): default InMemoryRunner appName to match Python SDK#1485
mithun-sudo wants to merge 1 commit into
google:mainfrom
mithun-sudo:fix/inmemory-runner-default-app-name

Conversation

@mithun-sudo

@mithun-sudo mithun-sudo commented Sep 8, 2026

Copy link
Copy Markdown

Fixes #1486

Summary

  • Default InMemoryRunner(BaseAgent) appName to "InMemoryRunner" instead of agent.name(), matching adk-python.
  • Add InMemoryRunnerTest and update AgentWithMemoryTest to use runner.appName().

Breaking change (minor)

Callers that relied on implicit agent.name() as appName should use new InMemoryRunner(agent, agent.name()) explicitly.

Test plan

  • ./mvnw -pl core -am test — BUILD SUCCESS

@hemasekhar-p

Copy link
Copy Markdown
Contributor

Hi @mithun-sudo, thank you for your contribution and We appreciate you taking the time to submit this pull request. I have noticed that the maven build is failing with your changes, could you please address this?

@hemasekhar-p hemasekhar-p added the waiting on reporter Waiting for reaction by reporter. Failing that, maintainers will eventually closed it as stale. label Sep 8, 2026
Default the single-arg InMemoryRunner constructor to "InMemoryRunner"
instead of agent.name(), aligning with adk-python.
@mithun-sudo
mithun-sudo force-pushed the fix/inmemory-runner-default-app-name branch from 405766a to d4cafa4 Compare September 8, 2026 13:57
@mithun-sudo

Copy link
Copy Markdown
Author

Fixed CI: spring-ai tests were still creating sessions with agent.name() while InMemoryRunner now defaults to "InMemoryRunner". Updated session creation to use runner.appName().

./mvnw -Prelease clean package passes locally.

@hemasekhar-p

Copy link
Copy Markdown
Contributor

@mithun-sudo, thank you for addressing the comments. This PR is currently under review by our team and we will keep you posted if any further information is required.

@hemasekhar-p hemasekhar-p added needs review and removed waiting on reporter Waiting for reaction by reporter. Failing that, maintainers will eventually closed it as stale. labels Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InMemoryRunner default appName should be "InMemoryRunner" to match adk-python

2 participants