Repository navigation
v30.0.0
BREAKING — see docs/MIGRATION-v30.md.
Breaking
- Embedders have two roles, told apart by method name. A store writes records and embeds the search text it handles itself; a search path only searches. Some retrieval models embed the two differently —
nvidia--llama-3.2-nv-embedqa-1brefuses a call withouttype: document | query— and one embedder instance used to serve both jobs. The roles are now separate contracts with different methods, so the compiler refuses one where the other is needed (verified byembedder-roles.typecheck.ts):@mcp-abap-adt/llm-agent:IDocumentEmbedder(embedDocument, optionalembedDocumentsfor batching models),IQueryEmbedder(embedQuery),IRetrievalEmbedder(both).symmetricEmbedder(embedder)gives anIEmbedderboth roles;asymmetricEmbedder({ document, query })joins the two halves of an asymmetric model.IEmbedderitself is unchanged — providers keep implementingembed.- Stores and collection providers take an
IRetrievalEmbedder:VectorRag,QdrantRag,PgVectorRag,HanaVectorRag, the four*RagProviders andmakeRag'sRagResolution(which no longer composes chunking/retry onto the embedder and dropsmaxBatchSize— compose theIEmbedderunderneath). - Search paths take an
IQueryEmbedder:QueryEmbedding,FallbackQueryEmbedding,SmartAgentBuilder.withEmbedder,SmartAgentDeps.embedder, the pipeline context.SmartAgentand the builder no longer wrap the embedder for usage logging —wrapEmbeddergoes on theIEmbedderunderneath. @mcp-abap-adt/llm-agent-server-libs: the server context'sembedder,ControllerFactoryDeps.embedder,MakeRagInput.embedder,makeKnowledgeBackend/makeKnowledgeSemanticIndexandrelevantExtracttake anIRetrievalEmbedder;BuildSkillHostDeps.resolveEmbedderreturns one. NewresolveRetrievalEmbedder;resolveAgentEmbedderis unchanged.conformanceEmbedder()(@mcp-abap-adt/llm-agent/testing) stays anIEmbedder: give it its roles withsymmetricEmbedder(...)before handing it to a store.
Added
- Asymmetric embedding models on SAP AI Core.
SapAiCoreEmbeddergainsinputType: 'document' | 'query'(orchestration scenario only — refused withfoundation-models).rag.embedder.asymmetric: truemakes the server resolve the model once per input type and join the halves withasymmetricEmbedder: every write (stores — a sub-agent's own included —, tool vectorization, skills, knowledge entries) goes through the document half, every search (agent, pipeline, tool selection, a store's own search text) through the query half.skillPlugins.embedder.asymmetric: truedoes the same for a dedicated skill embedder. Refused on any other provider, withscenario: foundation-models, and beside a factory.npm run models:check -- --configprobes both halves. - Stores embed the search text they handle themselves — a text-only query (every sub-agent's), a preprocessed one, a failed caller embedding — through
embedQuery; before, it went through the store's single embedder.
Fixed
llm.resourceGroupreaches SAP AI Core. The key was accepted in anllm:entry — the shipped examples setresourceGroup: ${SAP_AI_RESOURCE_GROUP:-default}on every role — butmakeLlmnever passed it on, so every chat ran in AI Core'sdefaultgroup. It is now handed to thesap-ai-sdkprovider (flat and mapllm:shapes); set on any other provider it fails at startup instead of being dropped.npm run models:check -- --configprobes each role in its resource group.- Examples:
anthropic--claude-3-haiku→anthropic--claude-4.5-haiku. AWS retired claude-3-haiku (every call now answers400 … This model version has reached the end of its life);examples/docker-sap-ai-coreandexamples/sap-ai-core-directdefaulted classifier and helper to it. claude-4.5-haiku classifies and calls tools through AI Core. - Docs no longer say the server reads
SAP_AI_MODEL/SAP_AI_RESOURCE_GROUPby itself; they reach the config only through${VAR}in the YAML.
Removed
- The implemented v27 design spec and plan under
docs/superpowers/.
What's Changed
- feat!: embedder roles by method name (asymmetric models); llm.resourceGroup; retire claude-3-haiku (v30) by @fr0ster in #319
Full Changelog: v29.0.0...v30.0.0