@breadstone/archipel-mcp 0.0.52 → 0.0.53
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/data/guides/ai-realtime-voice.md +506 -0
- package/data/guides/ai-text-generation.md +5 -0
- package/data/guides/health-indicators.md +12 -3
- package/data/guides/index.md +5 -4
- package/data/packages/platform-health/index.md +1 -1
- package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +6 -5
- package/data/packages/platform-intelligence/api/Class.IntelligenceModule.md +2 -2
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeError.md +110 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeMeteringPort.md +47 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeSessionFactory.md +129 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeSessionPort.md +308 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceTextGenerator.md +6 -6
- package/data/packages/platform-intelligence/api/Function.loadGoogleRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Function.loadGrokRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Function.loadOpenAIRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModuleOptions.md +18 -6
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeAudioFormat.md +34 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeCloseEvent.md +40 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeModuleOptions.md +120 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeSessionConfiguration.md +135 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeSessionOptions.md +148 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeToolDefinition.md +58 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeTranscriptionConfiguration.md +46 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeTurnDetectionConfiguration.md +58 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeUsage.md +103 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeClientEvent.md +64 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMetadataValue.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMeteringEvent.md +44 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeModelLoader.md +25 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeModelLoaders.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeServerEvent.md +159 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeStatus.md +14 -0
- package/data/packages/platform-intelligence/api/index.md +23 -0
- package/data/packages/platform-intelligence/index.md +133 -7
- package/data/patterns/index.md +1 -0
- package/data/patterns/realtime-session-pattern.md +309 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeTurnDetectionConfiguration'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeTurnDetectionConfiguration
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTurnDetectionConfiguration.ts:6
|
|
9
|
+
|
|
10
|
+
Provider-neutral voice activity detection configuration.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### prefixPaddingMs?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional prefixPaddingMs?: number;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTurnDetectionConfiguration.ts:19
|
|
21
|
+
|
|
22
|
+
Audio retained before detected speech starts.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### silenceDurationMs?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional silenceDurationMs?: number;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTurnDetectionConfiguration.ts:16
|
|
33
|
+
|
|
34
|
+
Silence duration that closes a turn.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### threshold?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional threshold?: number;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTurnDetectionConfiguration.ts:13
|
|
45
|
+
|
|
46
|
+
Activation threshold between zero and one.
|
|
47
|
+
|
|
48
|
+
***
|
|
49
|
+
|
|
50
|
+
### type
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly type: "server-vad" | "semantic-vad" | "disabled";
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTurnDetectionConfiguration.ts:10
|
|
57
|
+
|
|
58
|
+
Voice activity detection strategy.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeUsage'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeUsage
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:9
|
|
9
|
+
|
|
10
|
+
Normalized token usage reported by a realtime provider.
|
|
11
|
+
|
|
12
|
+
Null values mean the provider did not expose that dimension. Applications
|
|
13
|
+
can therefore distinguish missing data from an actual zero-token count.
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### cachedInputTokens
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
readonly cachedInputTokens: number | null;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:15
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### inputAudioTokens
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly inputAudioTokens: number | null;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:17
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### inputTextTokens
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
readonly inputTextTokens: number | null;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:16
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### inputTokens
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
readonly inputTokens: number | null;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:12
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### outputAudioTokens
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
readonly outputAudioTokens: number | null;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:19
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### outputTextTokens
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
readonly outputTextTokens: number | null;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:18
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### outputTokens
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
readonly outputTokens: number | null;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:13
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### rawUsage
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
readonly rawUsage: unknown;
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:20
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### totalTokens
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
readonly totalTokens: number | null;
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeUsage.ts:14
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeClientEvent'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeClientEvent
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeClientEvent =
|
|
10
|
+
| {
|
|
11
|
+
config: IIntelligenceRealtimeSessionConfiguration;
|
|
12
|
+
type: "session-update";
|
|
13
|
+
}
|
|
14
|
+
| {
|
|
15
|
+
audio: string;
|
|
16
|
+
type: "input-audio-append";
|
|
17
|
+
}
|
|
18
|
+
| {
|
|
19
|
+
type: "input-audio-commit";
|
|
20
|
+
}
|
|
21
|
+
| {
|
|
22
|
+
type: "input-audio-clear";
|
|
23
|
+
}
|
|
24
|
+
| {
|
|
25
|
+
item: | {
|
|
26
|
+
role: "user";
|
|
27
|
+
text: string;
|
|
28
|
+
type: "text-message";
|
|
29
|
+
}
|
|
30
|
+
| {
|
|
31
|
+
audio: string;
|
|
32
|
+
role: "user";
|
|
33
|
+
type: "audio-message";
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
callId: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
output: string;
|
|
39
|
+
type: "function-call-output";
|
|
40
|
+
};
|
|
41
|
+
type: "conversation-item-create";
|
|
42
|
+
}
|
|
43
|
+
| {
|
|
44
|
+
audioEndMs: number;
|
|
45
|
+
contentIndex: number;
|
|
46
|
+
itemId: string;
|
|
47
|
+
type: "conversation-item-truncate";
|
|
48
|
+
}
|
|
49
|
+
| {
|
|
50
|
+
options?: {
|
|
51
|
+
instructions?: string;
|
|
52
|
+
metadata?: Readonly<Record<string, unknown>>;
|
|
53
|
+
modalities?: ReadonlyArray<string>;
|
|
54
|
+
};
|
|
55
|
+
type: "response-create";
|
|
56
|
+
}
|
|
57
|
+
| {
|
|
58
|
+
type: "response-cancel";
|
|
59
|
+
};
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Defined in: realtime/contracts/IntelligenceRealtimeClientEvent.ts:12
|
|
63
|
+
|
|
64
|
+
Provider-neutral event sent from an application to a realtime model.
|
package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMetadataValue.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeMetadataValue'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeMetadataValue
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeMetadataValue = string | number | boolean | null;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: realtime/contracts/IntelligenceRealtimeMetadataValue.ts:6
|
|
13
|
+
|
|
14
|
+
Serializable metadata copied into realtime metering events.
|
package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMeteringEvent.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeMeteringEvent'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeMeteringEvent
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeMeteringEvent =
|
|
10
|
+
| IIntelligenceRealtimeMeteringEnvelope & {
|
|
11
|
+
startedAt: string;
|
|
12
|
+
type: "session-started";
|
|
13
|
+
}
|
|
14
|
+
| IIntelligenceRealtimeMeteringEnvelope & {
|
|
15
|
+
durationMs: number;
|
|
16
|
+
final: boolean;
|
|
17
|
+
periodEndedAt: string;
|
|
18
|
+
periodStartedAt: string;
|
|
19
|
+
sequence: number;
|
|
20
|
+
type: "billing-interval";
|
|
21
|
+
}
|
|
22
|
+
| IIntelligenceRealtimeMeteringEnvelope & {
|
|
23
|
+
responseId: string | null;
|
|
24
|
+
type: "provider-usage";
|
|
25
|
+
usage: IIntelligenceRealtimeUsage;
|
|
26
|
+
}
|
|
27
|
+
| IIntelligenceRealtimeMeteringEnvelope & {
|
|
28
|
+
closeCode: number;
|
|
29
|
+
closeReason: string;
|
|
30
|
+
durationMs: number;
|
|
31
|
+
endedAt: string;
|
|
32
|
+
startedAt: string;
|
|
33
|
+
type: "session-ended";
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Defined in: realtime/contracts/IntelligenceRealtimeMeteringEvent.ts:44
|
|
38
|
+
|
|
39
|
+
Durable metering event emitted by an Archipel realtime session.
|
|
40
|
+
|
|
41
|
+
`billing-interval` events provide a provider-independent 30-second billing
|
|
42
|
+
basis by default. `provider-usage` carries exact token dimensions whenever
|
|
43
|
+
the upstream provider exposes them. Consumers can persist both in one audit
|
|
44
|
+
transaction and choose their commercial charging strategy independently.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeModelLoader'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeModelLoader
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeModelLoader = (configuration, options) => Promise<RealtimeModelV4>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: providers/IntelligenceRealtimeModelLoader.ts:14
|
|
13
|
+
|
|
14
|
+
Creates a configured Vercel AI SDK realtime model behind the Archipel facade.
|
|
15
|
+
|
|
16
|
+
## Parameters
|
|
17
|
+
|
|
18
|
+
| Parameter | Type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `configuration` | [`IIntelligenceProviderConfiguration`](Interface.IIntelligenceProviderConfiguration) |
|
|
21
|
+
| `options` | `IIntelligenceRealtimeModelLoaderOptions` |
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`Promise`\<`RealtimeModelV4`\>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeModelLoaders'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeModelLoaders
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeModelLoaders = Partial<Record<IntelligenceProviderName, IntelligenceRealtimeModelLoader>>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: providers/IntelligenceRealtimeModelLoaders.ts:13
|
|
13
|
+
|
|
14
|
+
Maps configured intelligence providers to tree-shakable realtime model loaders.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeServerEvent'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeServerEvent
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeServerEvent =
|
|
10
|
+
| {
|
|
11
|
+
raw: unknown;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
type: "session-created";
|
|
14
|
+
}
|
|
15
|
+
| {
|
|
16
|
+
raw: unknown;
|
|
17
|
+
type: "session-updated";
|
|
18
|
+
}
|
|
19
|
+
| {
|
|
20
|
+
itemId?: string;
|
|
21
|
+
raw: unknown;
|
|
22
|
+
type: "speech-started";
|
|
23
|
+
}
|
|
24
|
+
| {
|
|
25
|
+
itemId?: string;
|
|
26
|
+
raw: unknown;
|
|
27
|
+
type: "speech-stopped";
|
|
28
|
+
}
|
|
29
|
+
| {
|
|
30
|
+
itemId?: string;
|
|
31
|
+
previousItemId?: string;
|
|
32
|
+
raw: unknown;
|
|
33
|
+
type: "audio-committed";
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
item: unknown;
|
|
37
|
+
itemId: string;
|
|
38
|
+
raw: unknown;
|
|
39
|
+
type: "conversation-item-added";
|
|
40
|
+
}
|
|
41
|
+
| {
|
|
42
|
+
itemId: string;
|
|
43
|
+
raw: unknown;
|
|
44
|
+
transcript: string;
|
|
45
|
+
type: "input-transcription-completed";
|
|
46
|
+
}
|
|
47
|
+
| {
|
|
48
|
+
raw: unknown;
|
|
49
|
+
responseId: string;
|
|
50
|
+
type: "response-created";
|
|
51
|
+
}
|
|
52
|
+
| {
|
|
53
|
+
raw: unknown;
|
|
54
|
+
responseId: string;
|
|
55
|
+
status: string;
|
|
56
|
+
type: "response-done";
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
itemId: string;
|
|
60
|
+
raw: unknown;
|
|
61
|
+
responseId: string;
|
|
62
|
+
type: "output-item-added";
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
itemId: string;
|
|
66
|
+
raw: unknown;
|
|
67
|
+
responseId: string;
|
|
68
|
+
type: "output-item-done";
|
|
69
|
+
}
|
|
70
|
+
| {
|
|
71
|
+
itemId: string;
|
|
72
|
+
raw: unknown;
|
|
73
|
+
responseId: string;
|
|
74
|
+
type: "content-part-added";
|
|
75
|
+
}
|
|
76
|
+
| {
|
|
77
|
+
itemId: string;
|
|
78
|
+
raw: unknown;
|
|
79
|
+
responseId: string;
|
|
80
|
+
type: "content-part-done";
|
|
81
|
+
}
|
|
82
|
+
| {
|
|
83
|
+
delta: string;
|
|
84
|
+
itemId: string;
|
|
85
|
+
raw: unknown;
|
|
86
|
+
responseId: string;
|
|
87
|
+
type: "audio-delta";
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
itemId: string;
|
|
91
|
+
raw: unknown;
|
|
92
|
+
responseId: string;
|
|
93
|
+
type: "audio-done";
|
|
94
|
+
}
|
|
95
|
+
| {
|
|
96
|
+
delta: string;
|
|
97
|
+
itemId: string;
|
|
98
|
+
raw: unknown;
|
|
99
|
+
responseId: string;
|
|
100
|
+
type: "audio-transcript-delta";
|
|
101
|
+
}
|
|
102
|
+
| {
|
|
103
|
+
itemId: string;
|
|
104
|
+
raw: unknown;
|
|
105
|
+
responseId: string;
|
|
106
|
+
transcript?: string;
|
|
107
|
+
type: "audio-transcript-done";
|
|
108
|
+
}
|
|
109
|
+
| {
|
|
110
|
+
delta: string;
|
|
111
|
+
itemId: string;
|
|
112
|
+
raw: unknown;
|
|
113
|
+
responseId: string;
|
|
114
|
+
type: "text-delta";
|
|
115
|
+
}
|
|
116
|
+
| {
|
|
117
|
+
itemId: string;
|
|
118
|
+
raw: unknown;
|
|
119
|
+
responseId: string;
|
|
120
|
+
text?: string;
|
|
121
|
+
type: "text-done";
|
|
122
|
+
}
|
|
123
|
+
| {
|
|
124
|
+
callId: string;
|
|
125
|
+
delta: string;
|
|
126
|
+
itemId: string;
|
|
127
|
+
raw: unknown;
|
|
128
|
+
responseId: string;
|
|
129
|
+
type: "function-call-arguments-delta";
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
arguments: string;
|
|
133
|
+
callId: string;
|
|
134
|
+
itemId: string;
|
|
135
|
+
name: string;
|
|
136
|
+
raw: unknown;
|
|
137
|
+
responseId: string;
|
|
138
|
+
type: "function-call-arguments-done";
|
|
139
|
+
}
|
|
140
|
+
| {
|
|
141
|
+
code?: string;
|
|
142
|
+
message: string;
|
|
143
|
+
raw: unknown;
|
|
144
|
+
type: "error";
|
|
145
|
+
}
|
|
146
|
+
| {
|
|
147
|
+
raw: unknown;
|
|
148
|
+
rawType: string;
|
|
149
|
+
type: "custom";
|
|
150
|
+
};
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Defined in: realtime/contracts/IntelligenceRealtimeServerEvent.ts:10
|
|
154
|
+
|
|
155
|
+
Provider-neutral event emitted by a realtime model.
|
|
156
|
+
|
|
157
|
+
The original provider event remains available through `raw` for audited
|
|
158
|
+
provider-specific diagnostics without leaking provider contracts into the
|
|
159
|
+
normal application flow.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligenceRealtimeStatus'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligenceRealtimeStatus
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligenceRealtimeStatus = "idle" | "connecting" | "connected" | "closing" | "closed" | "error";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: realtime/contracts/IntelligenceRealtimeStatus.ts:6
|
|
13
|
+
|
|
14
|
+
Describes the lifecycle state of an upstream realtime model connection.
|
|
@@ -17,6 +17,10 @@ editUrl: false
|
|
|
17
17
|
| [IntelligenceModule](Class.IntelligenceModule) | Core module exposing the shared intelligence infrastructure. |
|
|
18
18
|
| [IntelligenceProviderAssetUploader](Class.IntelligenceProviderAssetUploader) | Uploads provider-managed files and skills for reuse in AI SDK calls. |
|
|
19
19
|
| [IntelligenceProviderError](Class.IntelligenceProviderError) | Error thrown when an intelligence provider call fails. |
|
|
20
|
+
| [IntelligenceRealtimeError](Class.IntelligenceRealtimeError) | Error raised by a realtime session, transport, or metering adapter. |
|
|
21
|
+
| [IntelligenceRealtimeMeteringPort](Class.IntelligenceRealtimeMeteringPort) | Application port for idempotently persisting realtime billing and audit events. |
|
|
22
|
+
| [IntelligenceRealtimeSessionFactory](Class.IntelligenceRealtimeSessionFactory) | Creates and owns server-side, provider-neutral realtime AI sessions. |
|
|
23
|
+
| [IntelligenceRealtimeSessionPort](Class.IntelligenceRealtimeSessionPort) | Provider-neutral control surface for one realtime model connection. |
|
|
20
24
|
| [IntelligenceStructuredGenerator](Class.IntelligenceStructuredGenerator) | Executes AI SDK structured-output generation. |
|
|
21
25
|
| [IntelligenceTelemetryRegistry](Class.IntelligenceTelemetryRegistry) | Registers AI SDK telemetry integrations for the current process. |
|
|
22
26
|
| [IntelligenceTextGenerator](Class.IntelligenceTextGenerator) | Executes text completions using the configured intelligence provider. |
|
|
@@ -31,6 +35,15 @@ editUrl: false
|
|
|
31
35
|
| [IIntelligenceCompletionUsage](Interface.IIntelligenceCompletionUsage) | Captures usage telemetry returned by the intelligence provider. |
|
|
32
36
|
| [IIntelligenceModuleOptions](Interface.IIntelligenceModuleOptions) | Options for configuring the intelligence module. |
|
|
33
37
|
| [IIntelligenceProviderConfiguration](Interface.IIntelligenceProviderConfiguration) | Describes the resolved configuration for the intelligence provider. |
|
|
38
|
+
| [IIntelligenceRealtimeAudioFormat](Interface.IIntelligenceRealtimeAudioFormat) | Provider-neutral audio format configuration. |
|
|
39
|
+
| [IIntelligenceRealtimeCloseEvent](Interface.IIntelligenceRealtimeCloseEvent) | Describes why an upstream realtime connection closed. |
|
|
40
|
+
| [IIntelligenceRealtimeModuleOptions](Interface.IIntelligenceRealtimeModuleOptions) | Module-level resilience and resource limits for realtime intelligence. |
|
|
41
|
+
| [IIntelligenceRealtimeSessionConfiguration](Interface.IIntelligenceRealtimeSessionConfiguration) | Provider-neutral configuration for a realtime AI session. |
|
|
42
|
+
| [IIntelligenceRealtimeSessionOptions](Interface.IIntelligenceRealtimeSessionOptions) | Options used to create one server-owned realtime model connection. |
|
|
43
|
+
| [IIntelligenceRealtimeToolDefinition](Interface.IIntelligenceRealtimeToolDefinition) | Provider-neutral function definition exposed to a realtime model. |
|
|
44
|
+
| [IIntelligenceRealtimeTranscriptionConfiguration](Interface.IIntelligenceRealtimeTranscriptionConfiguration) | Provider-neutral transcription configuration. |
|
|
45
|
+
| [IIntelligenceRealtimeTurnDetectionConfiguration](Interface.IIntelligenceRealtimeTurnDetectionConfiguration) | Provider-neutral voice activity detection configuration. |
|
|
46
|
+
| [IIntelligenceRealtimeUsage](Interface.IIntelligenceRealtimeUsage) | Normalized token usage reported by a realtime provider. |
|
|
34
47
|
| [IIntelligenceTextCompletion](Interface.IIntelligenceTextCompletion) | Represents the normalized completion result produced by the intelligence provider. |
|
|
35
48
|
| [IIntelligenceTextGenerationOptions](Interface.IIntelligenceTextGenerationOptions) | Options that can be supplied when generating text with the intelligence provider. |
|
|
36
49
|
| [IIntelligenceTextGenerator](Interface.IIntelligenceTextGenerator) | Abstraction responsible for executing text completions using the configured provider. |
|
|
@@ -45,6 +58,13 @@ editUrl: false
|
|
|
45
58
|
| [IntelligenceLanguageModelLoader](TypeAlias.IntelligenceLanguageModelLoader) | Represents a factory responsible for creating a configured language model instance. |
|
|
46
59
|
| [IntelligenceLanguageModelLoaders](TypeAlias.IntelligenceLanguageModelLoaders) | Maps configured intelligence providers to their tree-shakable model loader. |
|
|
47
60
|
| [IntelligenceProviderName](TypeAlias.IntelligenceProviderName) | Represents the union of supported intelligence provider identifiers. |
|
|
61
|
+
| [IntelligenceRealtimeClientEvent](TypeAlias.IntelligenceRealtimeClientEvent) | Provider-neutral event sent from an application to a realtime model. |
|
|
62
|
+
| [IntelligenceRealtimeMetadataValue](TypeAlias.IntelligenceRealtimeMetadataValue) | Serializable metadata copied into realtime metering events. |
|
|
63
|
+
| [IntelligenceRealtimeMeteringEvent](TypeAlias.IntelligenceRealtimeMeteringEvent) | Durable metering event emitted by an Archipel realtime session. |
|
|
64
|
+
| [IntelligenceRealtimeModelLoader](TypeAlias.IntelligenceRealtimeModelLoader) | Creates a configured Vercel AI SDK realtime model behind the Archipel facade. |
|
|
65
|
+
| [IntelligenceRealtimeModelLoaders](TypeAlias.IntelligenceRealtimeModelLoaders) | Maps configured intelligence providers to tree-shakable realtime model loaders. |
|
|
66
|
+
| [IntelligenceRealtimeServerEvent](TypeAlias.IntelligenceRealtimeServerEvent) | Provider-neutral event emitted by a realtime model. |
|
|
67
|
+
| [IntelligenceRealtimeStatus](TypeAlias.IntelligenceRealtimeStatus) | Describes the lifecycle state of an upstream realtime model connection. |
|
|
48
68
|
| [IntelligenceTextStream](TypeAlias.IntelligenceTextStream) | Native AI SDK streaming result returned by the intelligence text generator. |
|
|
49
69
|
|
|
50
70
|
## Variables
|
|
@@ -137,6 +157,9 @@ editUrl: false
|
|
|
137
157
|
| [createProviderOptions](Function.createProviderOptions) | Creates the provider options object consumed by the AI SDK model factories. |
|
|
138
158
|
| [loadAnthropicLanguageModel](Function.loadAnthropicLanguageModel) | Creates the Anthropic language model from the resolved provider configuration. |
|
|
139
159
|
| [loadGoogleLanguageModel](Function.loadGoogleLanguageModel) | Creates the Google Gemini language model from the resolved provider configuration. |
|
|
160
|
+
| [loadGoogleRealtimeModel](Function.loadGoogleRealtimeModel) | Creates a Google Gemini Live model exclusively through the Vercel AI SDK provider. |
|
|
140
161
|
| [loadGrokLanguageModel](Function.loadGrokLanguageModel) | Creates the Grok language model through the native xAI provider. |
|
|
162
|
+
| [loadGrokRealtimeModel](Function.loadGrokRealtimeModel) | Creates an xAI Grok voice model exclusively through the Vercel AI SDK provider. |
|
|
141
163
|
| [loadMimoLanguageModel](Function.loadMimoLanguageModel) | Creates the Xiaomi MiMo language model from the resolved provider configuration. |
|
|
142
164
|
| [loadOpenAILanguageModel](Function.loadOpenAILanguageModel) | Creates the OpenAI language model from the resolved provider configuration. |
|
|
165
|
+
| [loadOpenAIRealtimeModel](Function.loadOpenAIRealtimeModel) | Creates an OpenAI realtime model exclusively through the Vercel AI SDK provider. |
|