@jambonz/schema 0.4.0 → 0.4.2
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.
package/jambonz-app.schema.json
CHANGED
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
|
@@ -63,6 +63,10 @@
|
|
|
63
63
|
"$ref": "../components/actionHook",
|
|
64
64
|
"description": "A webhook invoked for Dialogflow events during the conversation."
|
|
65
65
|
},
|
|
66
|
+
"toolHook": {
|
|
67
|
+
"$ref": "../components/actionHook",
|
|
68
|
+
"description": "A webhook invoked when the agent requests a client-side tool call (CX). Respond with {outputParameters} (or {error}) to resume the conversation."
|
|
69
|
+
},
|
|
66
70
|
"events": {
|
|
67
71
|
"type": "array",
|
|
68
72
|
"items": {
|
|
@@ -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
|
+
}
|