@breadstone/archipel-mcp 0.0.51 → 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.IntelligenceAgentFactory.md +5 -5
- package/data/packages/platform-intelligence/api/Class.IntelligenceEmbeddingGenerator.md +3 -3
- package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +6 -5
- package/data/packages/platform-intelligence/api/Class.IntelligenceMediaGenerator.md +5 -5
- package/data/packages/platform-intelligence/api/Class.IntelligenceModule.md +2 -2
- package/data/packages/platform-intelligence/api/Class.IntelligenceProviderAssetUploader.md +7 -5
- 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.IntelligenceStructuredGenerator.md +5 -5
- package/data/packages/platform-intelligence/api/Class.IntelligenceTelemetryRegistry.md +4 -4
- package/data/packages/platform-intelligence/api/Class.IntelligenceTextGenerator.md +8 -8
- package/data/packages/platform-intelligence/api/Function.createAnthropicAdvisor20260301Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicBash20241022Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicBash20250124Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20250522Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20250825Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20260120Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20241022Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20250124Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20251124Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicMemory20250818Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20241022Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250124Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250429Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250728Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicToolSearchBM2520251119Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicToolSearchRegex20251119Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebFetch20250910Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebFetch20260209Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebSearch20250305Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebSearch20260209Tool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleCodeExecutionTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleEnterpriseWebSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleFileSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleGoogleMapsTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleGoogleSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleUrlContextTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGoogleVertexRagStoreTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokCodeExecutionTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokFileSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokMcpServerTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokViewImageTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokViewXVideoTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokWebSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createGrokXSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createMimoCustomTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIApplyPatchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAICodeInterpreterTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAICustomTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIFileSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIImageGenerationTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAILocalShellTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIMcpTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIShellTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIToolSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIWebSearchPreviewTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.createOpenAIWebSearchTool.md +3 -3
- package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +2 -2
- package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +2 -2
- package/data/packages/platform-intelligence/api/Function.loadGoogleRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +2 -2
- package/data/packages/platform-intelligence/api/Function.loadGrokRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Function.loadMimoLanguageModel.md +3 -3
- package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +2 -2
- package/data/packages/platform-intelligence/api/Function.loadOpenAIRealtimeModel.md +25 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModuleOptions.md +20 -7
- 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.IntelligenceLanguageModelLoader.md +2 -2
- 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/Variable.MIMO_API_KEY.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.MIMO_BASE_URL.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.MIMO_CONFIG_ENTRIES.md +1 -1
- 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,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeSessionConfiguration'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeSessionConfiguration
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:18
|
|
9
|
+
|
|
10
|
+
Provider-neutral configuration for a realtime AI session.
|
|
11
|
+
|
|
12
|
+
This contract intentionally mirrors the stable Archipel surface instead of
|
|
13
|
+
exposing the AI SDK's experimental realtime types to applications.
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### inputAudioFormat?
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
readonly optional inputAudioFormat?: IIntelligenceRealtimeAudioFormat;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:31
|
|
24
|
+
|
|
25
|
+
Input audio format.
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### inputAudioTranscription?
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
readonly optional inputAudioTranscription?: IIntelligenceRealtimeTranscriptionConfiguration;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:34
|
|
36
|
+
|
|
37
|
+
Optional input transcription settings.
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### instructions?
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
readonly optional instructions?: string;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:22
|
|
48
|
+
|
|
49
|
+
System instructions for the model.
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### outputAudioFormat?
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
readonly optional outputAudioFormat?: IIntelligenceRealtimeAudioFormat;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:40
|
|
60
|
+
|
|
61
|
+
Output audio format.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### outputAudioTranscription?
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
readonly optional outputAudioTranscription?: IIntelligenceRealtimeTranscriptionConfiguration;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:37
|
|
72
|
+
|
|
73
|
+
Optional spoken-output transcription settings.
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### outputModalities?
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
readonly optional outputModalities?: readonly ("text" | "audio")[];
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:28
|
|
84
|
+
|
|
85
|
+
Modalities the model may produce.
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### providerOptions?
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
readonly optional providerOptions?: Readonly<Record<string, unknown>>;
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:49
|
|
96
|
+
|
|
97
|
+
Provider-specific escape hatch retained inside the Archipel boundary.
|
|
98
|
+
|
|
99
|
+
***
|
|
100
|
+
|
|
101
|
+
### tools?
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
readonly optional tools?: readonly IIntelligenceRealtimeToolDefinition[];
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:46
|
|
108
|
+
|
|
109
|
+
Explicit tool definitions. Registered Archipel tools are used when omitted.
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### turnDetection?
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
readonly optional turnDetection?:
|
|
117
|
+
| IIntelligenceRealtimeTurnDetectionConfiguration
|
|
118
|
+
| null;
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:43
|
|
122
|
+
|
|
123
|
+
Voice activity detection settings, or `null` for push-to-talk.
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
### voice?
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
readonly optional voice?: string;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeSessionConfiguration.ts:25
|
|
134
|
+
|
|
135
|
+
Provider voice identifier for spoken model output.
|
package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeSessionOptions.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeSessionOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeSessionOptions
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:16
|
|
9
|
+
|
|
10
|
+
Options used to create one server-owned realtime model connection.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### activeToolNames?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional activeToolNames?: readonly string[];
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:32
|
|
21
|
+
|
|
22
|
+
Optional allow-list of registered Archipel tools exposed to this session.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### metadata?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional metadata?: Readonly<Record<string, IntelligenceRealtimeMetadataValue>>;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:35
|
|
33
|
+
|
|
34
|
+
Bounded, non-sensitive correlation metadata copied to metering events.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### model
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly model: string;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:23
|
|
45
|
+
|
|
46
|
+
Realtime model identifier such as `gpt-realtime`.
|
|
47
|
+
|
|
48
|
+
***
|
|
49
|
+
|
|
50
|
+
### onClose?
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly optional onClose?: (event) => void | Promise<void>;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:44
|
|
57
|
+
|
|
58
|
+
Receives the terminal upstream connection state.
|
|
59
|
+
|
|
60
|
+
#### Parameters
|
|
61
|
+
|
|
62
|
+
| Parameter | Type |
|
|
63
|
+
| ------ | ------ |
|
|
64
|
+
| `event` | [`IIntelligenceRealtimeCloseEvent`](Interface.IIntelligenceRealtimeCloseEvent) |
|
|
65
|
+
|
|
66
|
+
#### Returns
|
|
67
|
+
|
|
68
|
+
`void` \| `Promise`\<`void`\>
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
72
|
+
### onError?
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
readonly optional onError?: (error) => void | Promise<void>;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:41
|
|
79
|
+
|
|
80
|
+
Receives transport, provider, parsing, and metering adapter failures.
|
|
81
|
+
|
|
82
|
+
#### Parameters
|
|
83
|
+
|
|
84
|
+
| Parameter | Type |
|
|
85
|
+
| ------ | ------ |
|
|
86
|
+
| `error` | `Error` |
|
|
87
|
+
|
|
88
|
+
#### Returns
|
|
89
|
+
|
|
90
|
+
`void` \| `Promise`\<`void`\>
|
|
91
|
+
|
|
92
|
+
***
|
|
93
|
+
|
|
94
|
+
### onEvent?
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
readonly optional onEvent?: (event) => void | Promise<void>;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:38
|
|
101
|
+
|
|
102
|
+
Receives normalized provider events in wire order.
|
|
103
|
+
|
|
104
|
+
#### Parameters
|
|
105
|
+
|
|
106
|
+
| Parameter | Type |
|
|
107
|
+
| ------ | ------ |
|
|
108
|
+
| `event` | [`IntelligenceRealtimeServerEvent`](TypeAlias.IntelligenceRealtimeServerEvent) |
|
|
109
|
+
|
|
110
|
+
#### Returns
|
|
111
|
+
|
|
112
|
+
`void` \| `Promise`\<`void`\>
|
|
113
|
+
|
|
114
|
+
***
|
|
115
|
+
|
|
116
|
+
### provider?
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
readonly optional provider?: IntelligenceProviderName;
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:26
|
|
123
|
+
|
|
124
|
+
Optional provider override. Defaults to the configured intelligence provider.
|
|
125
|
+
|
|
126
|
+
***
|
|
127
|
+
|
|
128
|
+
### sessionConfiguration?
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
readonly optional sessionConfiguration?: IIntelligenceRealtimeSessionConfiguration;
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:29
|
|
135
|
+
|
|
136
|
+
Provider-neutral realtime session configuration.
|
|
137
|
+
|
|
138
|
+
***
|
|
139
|
+
|
|
140
|
+
### sessionId
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
readonly sessionId: string;
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Defined in: realtime/interfaces/IIntelligenceRealtimeSessionOptions.ts:20
|
|
147
|
+
|
|
148
|
+
Application-owned identifier used for persistence, billing, and audit correlation.
|
package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeToolDefinition.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeToolDefinition'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeToolDefinition
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeToolDefinition.ts:6
|
|
9
|
+
|
|
10
|
+
Provider-neutral function definition exposed to a realtime model.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### description?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional description?: string;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeToolDefinition.ts:16
|
|
21
|
+
|
|
22
|
+
Optional model-facing description.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### name
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly name: string;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeToolDefinition.ts:13
|
|
33
|
+
|
|
34
|
+
Unique tool name within the session.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### parameters
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly parameters: Record<string, unknown>;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeToolDefinition.ts:19
|
|
45
|
+
|
|
46
|
+
JSON Schema describing the function parameters.
|
|
47
|
+
|
|
48
|
+
***
|
|
49
|
+
|
|
50
|
+
### type
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeToolDefinition.ts:10
|
|
57
|
+
|
|
58
|
+
Tool kind.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceRealtimeTranscriptionConfiguration'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IIntelligenceRealtimeTranscriptionConfiguration
|
|
7
|
+
|
|
8
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTranscriptionConfiguration.ts:6
|
|
9
|
+
|
|
10
|
+
Provider-neutral transcription configuration.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### language?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional language?: string;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTranscriptionConfiguration.ts:13
|
|
21
|
+
|
|
22
|
+
Optional BCP 47 language hint.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### model?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional model?: string;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTranscriptionConfiguration.ts:10
|
|
33
|
+
|
|
34
|
+
Provider-specific transcription model.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### prompt?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional prompt?: string;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: realtime/contracts/IIntelligenceRealtimeTranscriptionConfiguration.ts:16
|
|
45
|
+
|
|
46
|
+
Optional prompt used to guide the transcription.
|
|
@@ -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
|
package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md
CHANGED
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
# Type Alias: IntelligenceLanguageModelLoader
|
|
7
7
|
|
|
8
8
|
```ts
|
|
9
|
-
type IntelligenceLanguageModelLoader = (configuration) => LanguageModelV4
|
|
9
|
+
type IntelligenceLanguageModelLoader = (configuration) => Promise<LanguageModelV4>;
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Defined in: [providers/IntelligenceLanguageModelLoader.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/IntelligenceLanguageModelLoader.ts#L13)
|
|
@@ -21,4 +21,4 @@ Represents a factory responsible for creating a configured language model instan
|
|
|
21
21
|
|
|
22
22
|
## Returns
|
|
23
23
|
|
|
24
|
-
`LanguageModelV4
|
|
24
|
+
`Promise`\<`LanguageModelV4`\>
|
|
@@ -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`\>
|