@pinecall/skills 0.1.14 → 0.1.16

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": "@pinecall/skills",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Agent Skills for the Pinecall SDK — installable into Claude Code, Antigravity, Cursor, Copilot and any agent that supports the open Skills format.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -33,6 +33,44 @@ Pinecall supports multiple STT providers. Use the `provider/model` format or a f
33
33
  { stt: "xai/grok-stt" } // xAI Grok STT (BYOK)
34
34
  ```
35
35
 
36
+ ## Using an STT in an agent
37
+
38
+ `stt` goes on the agent config (or per phone number / per call). Use a `provider/model`
39
+ shortcut, or the full config object documented per provider below — both forms are
40
+ interchangeable anywhere `stt` is accepted.
41
+
42
+ ```typescript
43
+ import { Pinecall } from "@pinecall/sdk";
44
+
45
+ const pc = new Pinecall(); // reads PINECALL_API_KEY
46
+
47
+ // Shortcut form
48
+ const agent = pc.agent("support", {
49
+ stt: "deepgram/flux",
50
+ voice: "elevenlabs/sarah",
51
+ llm: "openai/gpt-5-chat-latest",
52
+ prompt: "You are a friendly support agent.",
53
+ });
54
+
55
+ // Full config object form (same field, with tuning)
56
+ pc.agent("support", {
57
+ stt: { provider: "deepgram", model: "nova-3", language: "en", smart_format: true, keyterms: ["Pinecall"] },
58
+ voice: "elevenlabs/sarah",
59
+ llm: "openai/gpt-5-chat-latest",
60
+ prompt: "...",
61
+ });
62
+ ```
63
+
64
+ Per-number and per-call overrides use the same `stt` value:
65
+
66
+ ```typescript
67
+ agent.addPhoneNumber("+14155551234", { stt: "deepgram/flux", language: "en" });
68
+ call.update({ stt: "deepgram/nova-3" }); // mid-call swap
69
+ ```
70
+
71
+ > Turn detection & VAD are **auto-derived** from the STT provider — never set
72
+ > `turnDetection`/`vad` manually. Each provider section below lists its full config.
73
+
36
74
  ## Managed vs bring-your-own-key (BYOK)
37
75
 
38
76
  Some providers work out of the box on Pinecall's managed keys; the newer ones
@@ -98,7 +136,7 @@ Or with tuning:
98
136
  ```typescript
99
137
  stt: {
100
138
  provider: "deepgram",
101
- model: "nova-3",
139
+ model: "nova-3", // "nova-3" | "nova-2"
102
140
  language: "en",
103
141
  interim_results: true,
104
142
  smart_format: true,
@@ -106,7 +144,9 @@ stt: {
106
144
  profanity_filter: false,
107
145
  endpointing_ms: 300,
108
146
  utterance_end_ms: 1000,
109
- keywords: ["pinecall"],
147
+ keywords: ["pinecall"], // nova-2 keyword boosting
148
+ keyterms: ["pinecall"], // nova-3 keyterm prompting
149
+ min_confidence: 0.0, // drop transcripts below this confidence (0 = off)
110
150
  }
111
151
  ```
112
152
 
@@ -179,8 +179,11 @@ Shortcut: `"cartesia/yumiko"`
179
179
  voice: {
180
180
  provider: "polly",
181
181
  voice_id: "Joanna",
182
- engine: "neural",
182
+ engine: "neural", // "neural" | "standard"
183
183
  language: "en-US",
184
+ rate: "medium", // "slow" | "medium" | "fast" | "+10%" / "-10%"
185
+ volume: "medium", // "soft" | "medium" | "loud" | "+6dB" / "-6dB"
186
+ pitch: "+5%", // standard engine only
184
187
  }
185
188
  ```
186
189
 
@@ -189,6 +192,7 @@ Shortcut: `"polly/joanna"`
189
192
  **Tuning notes:**
190
193
 
191
194
  - `engine: "neural"` is required for natural-sounding output. The older `standard` engine is robotic.
195
+ - `rate` / `volume` accept named levels or relative values; `pitch` only applies to the `standard` engine.
192
196
  - Polly is the cheapest option but the least natural — fine for IVR-style flows, not for engaging conversation.
193
197
 
194
198
  ## Rime (BYOK)