Skip to content

Commit 66ab62c

Browse files
committed
refactor(spring-boot-starter): rename directory to match contrib convention
contrib/adk-spring-boot-starter/ -> contrib/spring-boot-starter/ The previous directory name carried an extra 'adk-' prefix that none of the other contrib modules use. Every other contrib follows 'contrib/<short-name>/' with the Maven artifactId 'google-adk-<short-name>': contrib/spring-ai/ -> google-adk-spring-ai contrib/langchain4j/ -> google-adk-langchain4j contrib/firestore-session-service/ -> google-adk-firestore-session-service contrib/planners/ -> google-adk-planners Aligning the starter to the same shape: contrib/spring-boot-starter/ -> google-adk-spring-boot-starter Updated: - Root pom.xml <modules> entry to point at the new path. - Sample README link to the starter README. - Linter-driven reformatting on the two sample source files (AgentConfig, AgentService) carried in from the build.
1 parent 48f880b commit 66ab62c

20 files changed

Lines changed: 16 additions & 14 deletions

contrib/samples/spring-boot-adk-template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mvn -pl contrib/samples/spring-boot-adk-template -am spring-boot:run
3232

3333
`src/main/resources/application.yaml` shows the full property surface as comments. The defaults give an all-in-memory configuration with no GCP credentials required — switch backends by uncommenting the relevant blocks (`adk.session.type=VERTEX_AI`, `adk.session.type=FIRESTORE`, `adk.artifacts.gcs-enabled=true`, etc.).
3434

35-
See the [starter README](../../adk-spring-boot-starter/README.md) for the full property reference.
35+
See the [starter README](../../spring-boot-starter/README.md) for the full property reference.
3636

3737
## Use Spring AI as the LLM substrate (optional)
3838

contrib/samples/spring-boot-adk-template/src/main/java/com/example/springbootadktemplate/AgentService.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
@Service
88
public class AgentService {
99

10-
private final Runner runner;
11-
private final LlmAgent agent;
10+
private final Runner runner;
11+
private final LlmAgent agent;
1212

13-
public AgentService(Runner runner, LlmAgent agent) {
14-
this.runner = runner;
15-
this.agent = agent;
16-
}
13+
public AgentService(Runner runner, LlmAgent agent) {
14+
this.runner = runner;
15+
this.agent = agent;
16+
}
1717

18-
public String getAgentInfo() {
19-
return "Agent created: " + agent.getClass().getSimpleName() +
20-
", Runner: " + runner.getClass().getSimpleName();
21-
}
18+
public String getAgentInfo() {
19+
return "Agent created: "
20+
+ agent.getClass().getSimpleName()
21+
+ ", Runner: "
22+
+ runner.getClass().getSimpleName();
23+
}
2224
}

contrib/samples/spring-boot-adk-template/src/main/java/com/example/springbootadktemplate/config/AgentConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Sample agent topology — defines a root LlmAgent and packages it into an App.
2020
*
2121
* <p>The starter provides {@code Runner}, {@code BaseSessionService}, {@code BaseArtifactService},
22-
* and {@code RunConfig} automatically — this configuration only declares the user-specific
23-
* agent topology.
22+
* and {@code RunConfig} automatically — this configuration only declares the user-specific agent
23+
* topology.
2424
*/
2525
@Configuration
2626
public class AgentConfig {

contrib/adk-spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkArtifactsAutoConfiguration.java renamed to contrib/spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkArtifactsAutoConfiguration.java

File renamed without changes.

contrib/adk-spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreAutoConfiguration.java renamed to contrib/spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreAutoConfiguration.java

File renamed without changes.

contrib/adk-spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreMemoryAutoConfiguration.java renamed to contrib/spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreMemoryAutoConfiguration.java

File renamed without changes.

contrib/adk-spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreSessionAutoConfiguration.java renamed to contrib/spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkFirestoreSessionAutoConfiguration.java

File renamed without changes.

contrib/adk-spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkMemoryAutoConfiguration.java renamed to contrib/spring-boot-starter/src/main/java/com/google/adk/autoconfigure/AdkMemoryAutoConfiguration.java

File renamed without changes.

0 commit comments

Comments
 (0)