Commit f0c3c06
committed
feat: Add Spring AI 1.1.0 integration to ADK Java (#482)
This commit introduces a comprehensive Spring AI integration module that bridges
ADK Java with Spring AI framework, enabling seamless interoperability between the two.
Key features:
- Full Spring AI ChatModel and EmbeddingModel API implementation
- Support for multiple AI providers (OpenAI, Gemini, Anthropic, Ollama)
- Streaming response aggregation with thread-safe implementation
- Auto-configuration with Spring Boot support
- Comprehensive message and tool conversion between ADK and Spring AI formats
- Observability integration for monitoring and debugging
- Error mapping and exception handling
- Extensive test coverage including unit and integration tests
Technical improvements:
- Refactored exception handling and threading for better reliability
- Optimized streaming callbacks and response processing
- Enhanced auto-configuration for model name discovery
- Improved test utilities and test organization
- Added support for embedding models with proper conversion
This integration allows developers to leverage Spring AI's ecosystem while
using ADK's powerful agent capabilities, providing the best of both frameworks.
Co-authored-by: Dan Dobrin <[email protected]>1 parent 03d043f commit f0c3c06
File tree
45 files changed
+9038
-0
lines changed- contrib/spring-ai
- src
- main
- java/com/google/adk/models/springai
- autoconfigure
- error
- observability
- properties
- resources/META-INF
- spring
- test/java/com/google/adk/models/springai
- autoconfigure
- embeddings
- error
- integrations
- tools
- observability
- ollama
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+9038
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments