@jambonz/schema 0.3.17 → 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,6 +89,10 @@
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" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/schema",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "JSON Schema definitions and validation for jambonz verb applications",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 },