Skip to content

Commit 7bf2c24

Browse files
committed
docs: re-add Dependencies sections using \${project.version}, matching tutorial 13
Tutorial 11 gets a single consolidated Dependencies section after the intro (starter + one adapter pattern); Coordinator gets its Dependency section back. Both use \${project.version} as tutorial 13 does, so nothing hardcodes a specific release and the next bump doesn't create doc drift.
1 parent 8982584 commit 7bf2c24

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

docs/src/content/docs/agents/coordinator.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ public class CeoCoordinator {
5252
}
5353
```
5454

55+
## Dependency
56+
57+
```xml
58+
<dependency>
59+
<groupId>org.atmosphere</groupId>
60+
<artifactId>atmosphere-coordinator</artifactId>
61+
<version>${project.version}</version>
62+
</dependency>
63+
```
64+
65+
The coordinator module transitively pulls in `atmosphere-agent` and `atmosphere-a2a`, so one dependency line covers `@Agent` discovery, A2A wire support, and the coordinator annotations.
66+
5567
## Annotations
5668

5769
### `@Coordinator`

docs/src/content/docs/tutorial/11-ai-adapters.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ sidebar:
77

88
Atmosphere's AI layer follows the same adapter pattern as its transport layer. Just as Atmosphere auto-detects WebSocket, SSE, or long-polling support at runtime, it auto-detects which AI framework is on the classpath and bridges it to the `StreamingSession` API via the `AgentRuntime` SPI.
99

10+
## Dependencies
11+
12+
Add the Atmosphere Spring Boot starter and the adapter module for the framework you want. Adapter modules transitively pull in `atmosphere-ai` (the framework-agnostic SPI) and declare the underlying AI framework as `<scope>provided</scope>` — you supply the framework itself on your application classpath:
13+
14+
```xml
15+
<dependency>
16+
<groupId>org.atmosphere</groupId>
17+
<artifactId>atmosphere-spring-boot-starter</artifactId>
18+
<version>${project.version}</version>
19+
</dependency>
20+
21+
<!-- Pick one adapter (or add multiple and let priority() pick a winner): -->
22+
<dependency>
23+
<groupId>org.atmosphere</groupId>
24+
<artifactId>atmosphere-spring-ai</artifactId>
25+
<version>${project.version}</version>
26+
</dependency>
27+
<!-- or atmosphere-langchain4j, atmosphere-adk,
28+
atmosphere-embabel, atmosphere-koog, atmosphere-semantic-kernel -->
29+
```
30+
31+
Zero-extra-dep option: drop the adapter line and let the built-in OpenAI-compatible client in `atmosphere-ai` serve the requests. See the next section for when that's the right choice. Native framework versions Atmosphere is tested against are pinned in the [Runtimes table](#runtimes) two sections below.
32+
1033
## Built-in LLM Client (zero extra dependencies)
1134

1235
Before reaching for an adapter module, know that `atmosphere-ai` itself includes a built-in `OpenAiCompatibleClient`. This client works with **OpenAI**, **Google Gemini**, **Ollama**, **Azure OpenAI**, and any OpenAI-compatible endpoint — with zero additional dependencies beyond `atmosphere-ai`. The Maven coordinates for every module in this chapter are listed in the [Runtimes table](#runtimes) below and in the [Spring Boot integration guide](/docs/tutorial/14-spring-boot/).

0 commit comments

Comments
 (0)