@jambonz/schema 0.3.16 → 0.3.18
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://jambonz.org/schema/components/hangup",
|
|
4
|
+
"title": "Hangup",
|
|
5
|
+
"description": "Enable the built-in hangup tool for conversational verbs (agent and s2s). When present, the runtime injects a 'hangup' tool; when the model calls it, the call is ended with a reason placed in an X-Reason SIP header. The LLM-supplied reason wins, falling back to the app-supplied default below.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"reason": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Default reason placed in the X-Reason SIP header when the call is hung up. Used as a fallback when the LLM does not supply its own reason."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -89,10 +89,29 @@
|
|
|
89
89
|
"$ref": "handoff",
|
|
90
90
|
"description": "Declarative transfer-to-human config for s2s verbs. When present, the runtime injects a 'transfer_to_human' tool and runs the packaged transfer choreography when the model calls it."
|
|
91
91
|
},
|
|
92
|
+
"hangup": {
|
|
93
|
+
"$ref": "hangup",
|
|
94
|
+
"description": "Enable the built-in hangup tool for s2s verbs. When present, the runtime injects a 'hangup' tool; when the model calls it, the call is ended with a reason placed in an X-Reason SIP header (LLM-supplied reason wins, falling back to hangup.reason)."
|
|
95
|
+
},
|
|
92
96
|
"events": {
|
|
93
97
|
"type": "array",
|
|
94
98
|
"items": { "type": "string" },
|
|
95
99
|
"description": "List of event types to receive via the eventHook."
|
|
100
|
+
},
|
|
101
|
+
"responseTimeoutMs": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"minimum": 1,
|
|
104
|
+
"description": "Opt-in per-response stall watchdog (s2s vendors that support app-driven turn-taking, e.g. openai). Milliseconds to wait for a solicited response to be acknowledged before declaring a stall. When the timer expires a '{type:\"response.timeout\"}' event is sent to the eventHook. Omit or set to 0 to disable (the default)."
|
|
105
|
+
},
|
|
106
|
+
"cancelOnResponseTimeout": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": false,
|
|
109
|
+
"description": "When a response stall is detected (see responseTimeoutMs), cancel the in-progress server-side response so the next turn does not collide with an active response. Has no effect unless responseTimeoutMs is set."
|
|
110
|
+
},
|
|
111
|
+
"cancelOnBargeIn": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"default": false,
|
|
114
|
+
"description": "On caller barge-in, cancel the in-progress server-side response. Intended for app-driven turn-taking configurations where the vendor does not cancel the response itself (server-VAD configurations are unaffected)."
|
|
96
115
|
}
|
|
97
116
|
}
|
|
98
117
|
}
|
package/package.json
CHANGED
package/verbs/agent.schema.json
CHANGED
|
@@ -140,7 +140,9 @@
|
|
|
140
140
|
"baseten",
|
|
141
141
|
"azure-openai",
|
|
142
142
|
"groq",
|
|
143
|
-
"huggingface"
|
|
143
|
+
"huggingface",
|
|
144
|
+
"moonshot",
|
|
145
|
+
"zai"
|
|
144
146
|
],
|
|
145
147
|
"description": "LLM vendor id. Must match a `@jambonz/llm` registered adapter."
|
|
146
148
|
},
|
|
@@ -305,6 +307,10 @@
|
|
|
305
307
|
"$ref": "../components/handoff",
|
|
306
308
|
"description": "Declarative transfer-to-human config. When present, the runtime injects a 'transfer_to_human' tool into the agent's toolset and runs the packaged transfer choreography (blind/warm) when the LLM calls it."
|
|
307
309
|
},
|
|
310
|
+
"hangup": {
|
|
311
|
+
"$ref": "../components/hangup",
|
|
312
|
+
"description": "Enable the built-in hangup tool. When present, the runtime injects a 'hangup' tool into the agent's toolset; when the LLM calls it, the call is ended with a reason placed in an X-Reason SIP header (LLM-supplied reason wins, falling back to hangup.reason)."
|
|
313
|
+
},
|
|
308
314
|
"toolFiller": {
|
|
309
315
|
"oneOf": [
|
|
310
316
|
{ "type": "boolean", "const": false },
|