@pinecall/skills 0.1.15 → 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.15",
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