@jambonz/sdk 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "jambonz SDK for building voice applications — optimized for AI agents",
5
5
  "author": "Dave Horton",
6
6
  "license": "MIT",
@@ -2,21 +2,62 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://jambonz.org/schema/verbs/elevenlabs_s2s",
4
4
  "title": "ElevenLabs S2S",
5
- "description": "Shortcut for 'llm' with vendor automatically set to 'elevenlabs'. Connects the caller to an ElevenLabs model for real-time speech-to-speech voice conversation.",
5
+ "description": "Shortcut for 'llm' with vendor automatically set to 'elevenlabs'. Connects the caller to an ElevenLabs Conversational AI agent for real-time speech-to-speech voice conversation. Unlike other s2s vendors, ElevenLabs requires a pre-configured agent_id rather than a model and messages.",
6
6
  "type": "object",
7
7
  "allOf": [{ "$ref": "../components/llm-base" }],
8
8
  "properties": {
9
9
  "verb": { "const": "elevenlabs_s2s", "description": "The verb name." },
10
- "vendor": { "type": "string", "const": "elevenlabs", "description": "The LLM vendor (always 'elevenlabs' for this shortcut)." }
10
+ "vendor": { "type": "string", "const": "elevenlabs", "description": "The LLM vendor (always 'elevenlabs' for this shortcut)." },
11
+ "auth": {
12
+ "type": "object",
13
+ "description": "Authentication credentials for ElevenLabs. Requires agent_id; api_key is optional (if not provided, an unsigned URL is used).",
14
+ "properties": {
15
+ "agent_id": {
16
+ "type": "string",
17
+ "description": "The ElevenLabs Conversational AI agent ID. Required."
18
+ },
19
+ "api_key": {
20
+ "type": "string",
21
+ "description": "The ElevenLabs API key. Optional; when provided, a signed URL is used for the WebSocket connection."
22
+ }
23
+ },
24
+ "required": ["agent_id"]
25
+ },
26
+ "llmOptions": {
27
+ "type": "object",
28
+ "description": "Options for the ElevenLabs conversation session.",
29
+ "properties": {
30
+ "conversation_initiation_client_data": {
31
+ "type": "object",
32
+ "description": "Optional data sent to the agent when the conversation starts.",
33
+ "additionalProperties": true
34
+ },
35
+ "input_sample_rate": {
36
+ "type": "integer",
37
+ "description": "Audio input sample rate in Hz.",
38
+ "default": 16000
39
+ },
40
+ "output_sample_rate": {
41
+ "type": "integer",
42
+ "description": "Audio output sample rate in Hz.",
43
+ "default": 16000
44
+ }
45
+ },
46
+ "additionalProperties": true
47
+ }
11
48
  },
12
- "required": ["llmOptions"],
49
+ "required": ["auth"],
13
50
  "examples": [
14
51
  {
15
52
  "verb": "elevenlabs_s2s",
16
- "llmOptions": {
17
- "messages": [{ "role": "system", "content": "You are a helpful voice assistant." }]
53
+ "auth": {
54
+ "agent_id": "your-elevenlabs-agent-id",
55
+ "api_key": "your-elevenlabs-api-key"
18
56
  },
19
- "actionHook": "/s2s-complete"
57
+ "llmOptions": {},
58
+ "actionHook": "/s2s-complete",
59
+ "eventHook": "/event",
60
+ "events": ["all"]
20
61
  }
21
62
  ]
22
63
  }