Skip to content

Add Spring AI samples#775

Draft
donald-pinckney wants to merge 2 commits intomainfrom
d/20260406-164121
Draft

Add Spring AI samples#775
donald-pinckney wants to merge 2 commits intomainfrom
d/20260406-164121

Conversation

@donald-pinckney
Copy link
Copy Markdown

@donald-pinckney donald-pinckney commented Apr 6, 2026

Summary

  • Adds 5 Spring AI sample modules demonstrating temporal-spring-ai integration:
    • springai — Basic chat with activity tools, deterministic tools, and side-effect tools
    • springai-mcp — MCP (Model Context Protocol) integration with filesystem server
    • springai-multimodel — Multiple AI providers (OpenAI + Anthropic)
    • springai-rag — Retrieval-Augmented Generation with vector store
    • springai-sandboxing — Unsafe tool sandboxing demo
  • Shared build config in gradle/springai.gradle
  • Uses includeBuild('../sdk-java') for the unpublished temporal-spring-ai artifact (to be removed once published)
  • All 5 samples verified to boot against a Temporal dev server

Related

Running a sample

# Start Temporal dev server
temporal server start-dev

# Set API key
export OPENAI_API_KEY=your-key

# Run the chat example
./gradlew :springai:bootRun --console=plain

Test plan

  • springai — boots, registers ChatModelActivity
  • springai-rag — boots, registers ChatModelActivity + VectorStoreActivity
  • springai-sandboxing — boots, registers ChatModelActivity
  • springai-multimodel — boots, registers ChatModelActivity (2 models)
  • springai-mcp — boots (requires Node.js/npx for MCP server)

🤖 Generated with Claude Code

- Remove runtimeOnly spring-ai-rag and spring-ai-mcp from shared
  config (no longer needed after T6 plugin split in sdk-java)
- Fix workflow class package references (old prototype packages)
- Add web-application-type: none to RAG and multimodel configs
- Exclude conflicting chat auto-configs in multimodel sample

All 5 samples now boot successfully against a Temporal dev server.
MCP sample requires Node.js/npx for the MCP server.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant