You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploy the middleware as a managed FastAPI service using the included Railway manifest.
253
+
254
+
1. Install the Railway CLI (`npm i -g @railway/cli`) and authenticate with `railway login`.
255
+
2. From the repository root run `railway up` to create or update a service using `railway.toml`.
256
+
3. Set `GOOGLE_API_KEY` or `GOOGLE_APPLICATION_CREDENTIALS` in the Railway dashboard so the ADK agent can call Gemini.
257
+
4. (Optional) Tune behaviour with the environment variables documented in `ag_ui_adk/railway_app.py` such as `ADK_MODEL`, `ADK_APP_NAME`, and `ADK_API_PATH`.
258
+
259
+
Railway builds from the provided `Dockerfile`, which installs the middleware and runs `uvicorn ag_ui_adk.railway_app:app`. The middleware endpoint is available at `https://<your-service>.railway.app/chat` (or the path set in `ADK_API_PATH`) with `/health` exposed for monitoring.
260
+
261
+
> Note: A `Procfile` remains for local tooling compatibility, but Railway uses the Dockerfile as the authoritative start command.
262
+
250
263
## Tool Support
251
264
252
265
The middleware provides complete bidirectional tool support, enabling AG-UI Protocol tools to execute within Google ADK agents. All tools supplied by the client are currently implemented as long-running tools that emit events to the client for execution and can be combined with backend tools provided by the agent to create a hybrid combined toolset.
Copy file name to clipboardExpand all lines: sdks/community/kotlin/OVERVIEW.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,4 +21,9 @@ AG-UI Kotlin SDK follows the design patterns of the TypeScript SDK while leverag
21
21
-**kotlin-client**: HTTP transport, state management, and high-level agent APIs
22
22
-**kotlin-tools**: Tool execution framework with registry and circuit breakers
23
23
24
-
The SDK maintains conceptual parity with the TypeScript implementation while providing native Kotlin idioms like sealed classes, suspend functions, and Kotlin Flows for streaming responses.
24
+
The SDK maintains conceptual parity with the TypeScript implementation while providing native Kotlin idioms like sealed classes, suspend functions, and Kotlin Flows for streaming responses.
25
+
26
+
## Lifecycle subscribers and role fidelity
27
+
28
+
-**AgentSubscriber hooks** – Agents now expose a subscription API so applications can observe run initialization, per-event delivery, and state mutations before the built-in handlers execute. This enables cross-cutting concerns like analytics, tracing, or custom persistence without forking the pipeline.
29
+
-**Role-aware text streaming** – Text message events preserve their declared roles (developer, system, assistant, user) throughout chunk transformation and state application, ensuring downstream UI state mirrors the protocol payloads exactly.
0 commit comments