Skip to content

v2.4.0

Choose a tag to compare

@ashakirin ashakirin released this 25 Nov 22:03
· 4 commits to main since this release

Highlights

  • Spring AI 2.1.0, including its Session API (org.springframework.ai:spring-ai-session / spring-ai-session-advisor), which replaces the community spring-ai-session (#300)
  • Payments: Machine Payments Protocol (MPP) next to x402, charge intent on evm, tempo and solana (#299)
  • Memory: CUSTOM long-term memory strategies are auto-discovered by their override type (#286)

Breaking changes

  • The memory module requires Spring AI 2.1. Remove org.springaicommunity:spring-ai-session and its BOM and add spring-ai-session + spring-ai-session-advisor; see the memory README for the migration steps (#300)
  • agentcore.memory.session.default-user-id is removed: the Spring AI 2.1 SessionMemoryAdvisor has no user id. The session's principal comes from the userId:session id (#300)
  • AgentCoreSessionRepository follows the 2.1 SPI: findByMetadata replaces findByUserId, appendEvents replaces applyCompaction (still unsupported), and only message events are stored (#300)
  • Long-term memory auto-discovery skips namespaces without {actorId}; set agentcore.memory.long-term.namespace.allow-shared=true to use shared namespaces on purpose (#288)

Fixes

  • Memory: conversation ids are split at the last colon, so actor ids may contain : (#270)
  • Memory: listMemories is paginated instead of reading only the first 20 records (#271)
  • Memory: user-preference retrieval gets the session (#273)
  • Memory: fail fast when an LTM strategy id is under the wrong group or a second group (#274)
  • Memory: skip auto-discovered namespaces with placeholders that retrieval cannot fill (#275)
  • Memory: CUSTOM strategies are type-checked by their override type (#279)
  • Memory: LTM request namespaces follow the memory's trailing slash (#280)
  • Memory: namespaceTemplates preferred over legacy namespaces (#287)
  • Memory: topK LTM search results requested in one call (#289)
  • Memory: tighter LTM namespace validation for placeholders and custom reflections (#258)
  • Build: Central credentials sent when publishing snapshots (#268)

Deprecations

  • AgentCorePaymentsTemplate is renamed to AgentCorePaymentsClient; the old name stays as a deprecated subclass until 3.0.0 (#298)

Other

  • Examples updated to Spring Boot 4.1.1; the evaluations example is now part of the examples build and uses a current Bedrock model (#267, #269)
  • Runtime docs describe what InvokeAgentRuntime callers see for error statuses (#278)
  • Dependency updates (AWS SDK, Playwright, OpenTelemetry and others)