@jambonz/schema 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,7 @@
27
27
  { "$ref": "verbs/elevenlabs_s2s" },
28
28
  { "$ref": "verbs/deepgram_s2s" },
29
29
  { "$ref": "verbs/ultravox_s2s" },
30
+ { "$ref": "verbs/qwen_s2s" },
30
31
  { "$ref": "verbs/dialogflow" },
31
32
  { "$ref": "verbs/agent" },
32
33
  { "$ref": "verbs/transfer" },
package/lib/normalize.js CHANGED
@@ -14,6 +14,7 @@ const verbTransforms = new Map([
14
14
  ['deepgram_s2s', {verb: 'llm', properties: {vendor: 'deepgram'}}],
15
15
  ['voiceagent_s2s', {verb: 'llm', properties: {vendor: 'voiceagent'}}],
16
16
  ['ultravox_s2s', {verb: 'llm', properties: {vendor: 'ultravox'}}],
17
+ ['qwen_s2s', {verb: 'llm', properties: {vendor: 'qwen'}}],
17
18
  ]);
18
19
 
19
20
  function applyVerbTransform(name, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/schema",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "JSON Schema definitions and validation for jambonz verb applications",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://jambonz.org/schema/verbs/qwen_s2s",
4
+ "minVersion": "0.4.0",
5
+ "title": "Qwen S2S",
6
+ "description": "Shortcut for 'llm' with vendor automatically set to 'qwen'. Connects the caller to an Alibaba Qwen Omni-Realtime model (e.g. qwen3.5-omni-plus-realtime, qwen3.5-omni-flash-realtime) for real-time speech-to-speech voice conversation. auth takes the DashScope apiKey (required; keys are region-bound) and an optional host — default dashscope-intl.aliyuncs.com (international); set a workspace-scoped host (ws-<workspaceId>.<region>.maas.aliyuncs.com) or dashscope.aliyuncs.com for the China (Beijing) region.",
7
+ "type": "object",
8
+ "allOf": [
9
+ {
10
+ "$ref": "../components/llm-base"
11
+ }
12
+ ],
13
+ "properties": {
14
+ "verb": {
15
+ "const": "qwen_s2s",
16
+ "description": "The verb name."
17
+ },
18
+ "vendor": {
19
+ "type": "string",
20
+ "const": "qwen",
21
+ "description": "The LLM vendor (always 'qwen' for this shortcut)."
22
+ }
23
+ },
24
+ "required": [
25
+ "llmOptions"
26
+ ],
27
+ "examples": [
28
+ {
29
+ "verb": "qwen_s2s",
30
+ "model": "qwen3.5-omni-flash-realtime",
31
+ "auth": {
32
+ "apiKey": "sk-...",
33
+ "host": "ws-abc123.ap-southeast-1.maas.aliyuncs.com"
34
+ },
35
+ "llmOptions": {
36
+ "session_update": {
37
+ "voice": "Ethan",
38
+ "instructions": "You are a helpful voice assistant.",
39
+ "turn_detection": { "type": "semantic_vad" }
40
+ }
41
+ },
42
+ "actionHook": "/s2s-complete"
43
+ }
44
+ ]
45
+ }