@telnyx/ai-agent-lib 0.4.4 → 0.4.5
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/README.md +2 -0
- package/dist/client.d.ts +2 -0
- package/dist/index.js +2987 -2585
- package/dist/react/client-context.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -152,6 +152,7 @@ function VoiceChat() {
|
|
|
152
152
|
|------|------|----------|---------|-------------|
|
|
153
153
|
| `agentId` | `string` | ✅ | - | Your Telnyx AI agent ID |
|
|
154
154
|
| `versionId` | `string` | ❌ | `"main"` | Agent version to use |
|
|
155
|
+
| `widgetVersion` | `string` | ❌ | - | Widget package version forwarded to voice-sdk-proxy for observability |
|
|
155
156
|
| `environment` | `"production" \| "development"` | ❌ | `"production"` | Telnyx environment |
|
|
156
157
|
| `debug` | `boolean` | ❌ | `false` | Enable debug logging |
|
|
157
158
|
| `vad` | `VADOptions` | ❌ | See below | Voice Activity Detection configuration |
|
|
@@ -235,6 +236,7 @@ import { TelnyxAIAgent } from '@telnyx/ai-agent-lib';
|
|
|
235
236
|
const agent = new TelnyxAIAgent({
|
|
236
237
|
agentId: 'your-agent-id',
|
|
237
238
|
versionId: 'main',
|
|
239
|
+
widgetVersion: '0.33.6',
|
|
238
240
|
environment: 'production'
|
|
239
241
|
});
|
|
240
242
|
|
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { AIAgentEvents, TranscriptItem, VADOptions } from "./types";
|
|
|
4
4
|
export type TelnyxAIAgentConstructorParams = {
|
|
5
5
|
agentId: string;
|
|
6
6
|
versionId?: string;
|
|
7
|
+
widgetVersion?: string;
|
|
7
8
|
conversationId?: string;
|
|
8
9
|
environment?: "production" | "development";
|
|
9
10
|
debug?: boolean;
|
|
@@ -43,6 +44,7 @@ export declare class TelnyxAIAgent extends EventEmitter<AIAgentEvents> {
|
|
|
43
44
|
private authenticating;
|
|
44
45
|
agentId: string;
|
|
45
46
|
versionId: string;
|
|
47
|
+
widgetVersion?: string;
|
|
46
48
|
conversationId?: string;
|
|
47
49
|
debug: boolean;
|
|
48
50
|
private audioStreamMonitor;
|