feat: consume @jambonz/schema ^0.4.0 — llm optional, no vendor enum#18
Merged
Conversation
The agent verb's llm (and vendor/model) are now optional, falling back to the application default like stt/tts. Retires the llm.vendor enum codegen (gen-llm-vendors.mjs + generated union): vendor is free-form so new LLMs need no schema release. Adds dial.srtpEncryption and recognizer.xaiOptions to match the current schema. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the SDK to
@jambonz/schema@^0.4.0and reconciles the TS types with the current schema.llmis now optional on the agent verb, andllm.vendor/llm.modelare optional within it — matching schema 0.4.0. When omitted, the server resolves them from the application's default LLM (exactly likestt/tts).AgentVerb.llm,AgentLlm.vendor, andAgentLlm.modelare now optional.llm.vendorenum codegen. The schema intentionally has no vendor enum (so new LLMs don't require a schema release), soscripts/gen-llm-vendors.mjsand the generatedLLM_VENDORS/LlmVendorunion are removed.LlmVendoris now a free-formstring; vendor is validated at runtime by the server against its registered@jambonz/llmadapters. Removed thegen:types/prebuild/pretypecheckscripts and the schema-drift test that guarded the union.dial.srtpEncryptionandrecognizer.xaiOptions, which landed in the schema between 0.3.19 and 0.4.0.Breaking change
LLM_VENDORS(the exported vendor array) is removed, andLlmVendorwidens from a union tostring. Consumers relying on the union for exhaustiveness will need to adjust. Suggest a minor bump given 0.x.Tests
npm test— 122 pass. Typecheck clean. Build (tsup) clean. The removed test was theLLM_VENDORS equals agent.schema.json llm.vendor.enumdrift check, which no longer applies.