Skip to content

Commit a2a4a82

Browse files
google-genai-botcopybara-github
authored andcommitted
refactor: Use Runner.Builder instead of Runner contstructors
PiperOrigin-RevId: 852979650
1 parent e01df11 commit a2a4a82

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/src/test/java/com/google/adk/tools/LongRunningFunctionToolTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ private void setUpAgentAndRunner(
187187
.description(description)
188188
.build();
189189
runner =
190-
new Runner(
191-
agent,
192-
"test_app",
193-
artifactService,
194-
sessionService,
195-
memoryService,
196-
null,
197-
new ResumabilityConfig(false));
190+
Runner.builder()
191+
.agent(agent)
192+
.appName("test_app")
193+
.artifactService(artifactService)
194+
.sessionService(sessionService)
195+
.memoryService(memoryService)
196+
.resumabilityConfig(new ResumabilityConfig(false))
197+
.build();
198198
session =
199199
runner
200200
.sessionService()

0 commit comments

Comments
 (0)