@breadstone/archipel-mcp 0.0.52 → 0.0.54
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 +9 -0
- package/data/guides/health-indicators.md +12 -3
- package/data/guides/index.md +6 -4
- package/data/guides/intelligence-prompts-warm-up.md +358 -0
- package/data/packages/platform-health/index.md +1 -1
- package/data/packages/platform-intelligence/api/Class.DefaultIntelligencePromptPolicyAdapter.md +54 -0
- 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.IntelligencePromptExecutor.md +88 -0
- package/data/packages/platform-intelligence/api/Class.IntelligencePromptPolicyPort.md +48 -0
- 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.intelligencePrompt.md +31 -0
- 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 +30 -6
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptDefinition.md +145 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptEffectivePolicy.md +30 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptExecutionContext.md +20 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptExecutionPolicy.md +70 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptExecutionResult.md +139 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptInvocation.md +49 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptPolicyRequest.md +60 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptRenderContext.md +26 -0
- 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/Interface.IIntelligenceTextCompletion.md +24 -12
- package/data/packages/platform-intelligence/api/TypeAlias.IIntelligencePromptModelRequirement.md +25 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptCapability.md +20 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptDefinitionConfiguration.md +29 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptGenerationOptions.md +16 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptLatency.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptMode.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptQuality.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptReasoning.md +14 -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 +43 -0
- package/data/packages/platform-intelligence/index.md +211 -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,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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L9)
|
|
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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L15)
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### inputAudioTokens
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly inputAudioTokens: number | null;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L17)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### inputTextTokens
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
readonly inputTextTokens: number | null;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L16)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### inputTokens
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
readonly inputTokens: number | null;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L12)
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### outputAudioTokens
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
readonly outputAudioTokens: number | null;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:19](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L19)
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### outputTextTokens
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
readonly outputTextTokens: number | null;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L18)
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### outputTokens
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
readonly outputTokens: number | null;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L13)
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### rawUsage
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
readonly rawUsage: unknown;
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L20)
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### totalTokens
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
readonly totalTokens: number | null;
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Defined in: [realtime/contracts/IIntelligenceRealtimeUsage.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IIntelligenceRealtimeUsage.ts#L14)
|
|
@@ -17,7 +17,7 @@ Represents the normalized completion result produced by the intelligence provide
|
|
|
17
17
|
readonly files: readonly GeneratedFile[];
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
20
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:63](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L63)
|
|
21
21
|
|
|
22
22
|
Files generated by provider-native tools such as image generation or code interpreter.
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ Files generated by provider-native tools such as image generation or code interp
|
|
|
29
29
|
readonly optional finalStep?: StepResult<ToolSet, Record<string, unknown>>;
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
32
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:91](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L91)
|
|
33
33
|
|
|
34
34
|
Final AI SDK generation step.
|
|
35
35
|
|
|
@@ -41,19 +41,31 @@ Final AI SDK generation step.
|
|
|
41
41
|
readonly model: string;
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
44
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L49)
|
|
45
45
|
|
|
46
46
|
The model identifier used for the completion.
|
|
47
47
|
|
|
48
48
|
***
|
|
49
49
|
|
|
50
|
+
### output?
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly optional output?: unknown;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L35)
|
|
57
|
+
|
|
58
|
+
Generated output parsed according to the supplied AI SDK output specification.
|
|
59
|
+
|
|
60
|
+
***
|
|
61
|
+
|
|
50
62
|
### provider
|
|
51
63
|
|
|
52
64
|
```ts
|
|
53
65
|
readonly provider: string;
|
|
54
66
|
```
|
|
55
67
|
|
|
56
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
68
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L42)
|
|
57
69
|
|
|
58
70
|
The provider that produced the completion.
|
|
59
71
|
|
|
@@ -65,7 +77,7 @@ The provider that produced the completion.
|
|
|
65
77
|
readonly optional reasoning?: (ReasoningOutput | ReasoningFileOutput)[];
|
|
66
78
|
```
|
|
67
79
|
|
|
68
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
80
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:70](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L70)
|
|
69
81
|
|
|
70
82
|
Reasoning parts reported by AI SDK 7 compatible models.
|
|
71
83
|
|
|
@@ -77,7 +89,7 @@ Reasoning parts reported by AI SDK 7 compatible models.
|
|
|
77
89
|
readonly optional reasoningText?: string;
|
|
78
90
|
```
|
|
79
91
|
|
|
80
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
92
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:77](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L77)
|
|
81
93
|
|
|
82
94
|
Concatenated reasoning text reported by the final generation step.
|
|
83
95
|
|
|
@@ -89,7 +101,7 @@ Concatenated reasoning text reported by the final generation step.
|
|
|
89
101
|
readonly sources: readonly LanguageModelV4Source[];
|
|
90
102
|
```
|
|
91
103
|
|
|
92
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
104
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:56](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L56)
|
|
93
105
|
|
|
94
106
|
Sources reported by provider-native tools such as web search.
|
|
95
107
|
|
|
@@ -101,7 +113,7 @@ Sources reported by provider-native tools such as web search.
|
|
|
101
113
|
readonly optional steps?: StepResult<ToolSet, Record<string, unknown>>[];
|
|
102
114
|
```
|
|
103
115
|
|
|
104
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
116
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:84](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L84)
|
|
105
117
|
|
|
106
118
|
All AI SDK generation steps.
|
|
107
119
|
|
|
@@ -125,7 +137,7 @@ The generated text content.
|
|
|
125
137
|
readonly optional toolCalls?: TypedToolCall<ToolSet>[];
|
|
126
138
|
```
|
|
127
139
|
|
|
128
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
140
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:98](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L98)
|
|
129
141
|
|
|
130
142
|
Tool calls produced across the generation.
|
|
131
143
|
|
|
@@ -137,7 +149,7 @@ Tool calls produced across the generation.
|
|
|
137
149
|
readonly optional toolResults?: TypedToolResult<ToolSet>[];
|
|
138
150
|
```
|
|
139
151
|
|
|
140
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
152
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:105](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L105)
|
|
141
153
|
|
|
142
154
|
Tool results produced across the generation.
|
|
143
155
|
|
|
@@ -151,7 +163,7 @@ readonly usage:
|
|
|
151
163
|
| null;
|
|
152
164
|
```
|
|
153
165
|
|
|
154
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
166
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:119](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L119)
|
|
155
167
|
|
|
156
168
|
Token usage telemetry, or `null` when the provider does not report usage.
|
|
157
169
|
|
|
@@ -163,6 +175,6 @@ Token usage telemetry, or `null` when the provider does not report usage.
|
|
|
163
175
|
readonly optional warnings?: SharedV4Warning[];
|
|
164
176
|
```
|
|
165
177
|
|
|
166
|
-
Defined in: [contracts/IIntelligenceTextCompletion.ts:
|
|
178
|
+
Defined in: [contracts/IIntelligenceTextCompletion.ts:112](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceTextCompletion.ts#L112)
|
|
167
179
|
|
|
168
180
|
Provider or model warnings reported by the AI SDK.
|
package/data/packages/platform-intelligence/api/TypeAlias.IIntelligencePromptModelRequirement.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IIntelligencePromptModelRequirement'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IIntelligencePromptModelRequirement
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IIntelligencePromptModelRequirement =
|
|
10
|
+
| {
|
|
11
|
+
strategy: "automatic";
|
|
12
|
+
}
|
|
13
|
+
| {
|
|
14
|
+
models: ReadonlyArray<string>;
|
|
15
|
+
strategy: "preferred";
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
model: string | LanguageModel;
|
|
19
|
+
strategy: "fixed";
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Defined in: [prompts/IIntelligencePromptModelRequirement.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IIntelligencePromptModelRequirement.ts#L12)
|
|
24
|
+
|
|
25
|
+
Model selection requested by a reusable intelligence prompt.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptCapability'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptCapability
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptCapability =
|
|
10
|
+
| "textInput"
|
|
11
|
+
| "imageInput"
|
|
12
|
+
| "textOutput"
|
|
13
|
+
| "structuredOutput"
|
|
14
|
+
| "toolCalling"
|
|
15
|
+
| "reasoning";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Defined in: [prompts/IntelligencePromptCapability.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptCapability.ts#L6)
|
|
19
|
+
|
|
20
|
+
Provider-neutral capability required by an intelligence prompt.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptDefinitionConfiguration\<TInput, TOutput\>'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptDefinitionConfiguration\<TInput, TOutput\>
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptDefinitionConfiguration<TInput, TOutput> =
|
|
10
|
+
| IIntelligencePromptDefinitionConfigurationBase<TInput> & {
|
|
11
|
+
mode: "text";
|
|
12
|
+
outputSchema?: never;
|
|
13
|
+
}
|
|
14
|
+
| IIntelligencePromptDefinitionConfigurationBase<TInput> & {
|
|
15
|
+
mode: "object";
|
|
16
|
+
outputSchema: FlexibleSchema<TOutput>;
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [prompts/IntelligencePromptDefinitionConfiguration.ts:23](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptDefinitionConfiguration.ts#L23)
|
|
21
|
+
|
|
22
|
+
Configuration accepted by [intelligencePrompt](Function.intelligencePrompt).
|
|
23
|
+
|
|
24
|
+
## Type Parameters
|
|
25
|
+
|
|
26
|
+
| Type Parameter |
|
|
27
|
+
| ------ |
|
|
28
|
+
| `TInput` |
|
|
29
|
+
| `TOutput` |
|
package/data/packages/platform-intelligence/api/TypeAlias.IntelligencePromptGenerationOptions.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptGenerationOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptGenerationOptions
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptGenerationOptions = Omit<IIntelligenceTextGenerationOptions, "output">;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [prompts/IntelligencePromptGenerationOptions.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptGenerationOptions.ts#L14)
|
|
13
|
+
|
|
14
|
+
Native generation settings that can be stored on a prompt definition.
|
|
15
|
+
|
|
16
|
+
The output contract is owned by the prompt mode and cannot be overridden.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptLatency'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptLatency
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptLatency = "interactive" | "standard" | "background";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [prompts/IntelligencePromptLatency.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptLatency.ts#L6)
|
|
13
|
+
|
|
14
|
+
Latency profile requested by an intelligence prompt.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptMode'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptMode
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptMode = "text" | "object";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [prompts/IntelligencePromptMode.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptMode.ts#L6)
|
|
13
|
+
|
|
14
|
+
Supported execution modes for reusable intelligence prompts.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptQuality'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptQuality
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptQuality = "economy" | "balanced" | "capable" | "premium";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [prompts/IntelligencePromptQuality.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptQuality.ts#L6)
|
|
13
|
+
|
|
14
|
+
Provider-neutral model quality requested by an intelligence prompt.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: IntelligencePromptReasoning'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Type Alias: IntelligencePromptReasoning
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
type IntelligencePromptReasoning = "none" | "minimal" | "low" | "medium" | "high";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [prompts/IntelligencePromptReasoning.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptReasoning.ts#L6)
|
|
13
|
+
|
|
14
|
+
Provider-neutral reasoning effort requested by an intelligence prompt.
|
|
@@ -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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IntelligenceRealtimeClientEvent.ts#L12)
|
|
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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IntelligenceRealtimeMetadataValue.ts#L6)
|
|
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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/realtime/contracts/IntelligenceRealtimeMeteringEvent.ts#L44)
|
|
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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/IntelligenceRealtimeModelLoader.ts#L14)
|
|
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](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/IntelligenceRealtimeModelLoaders.ts#L13)
|
|
13
|
+
|
|
14
|
+
Maps configured intelligence providers to tree-shakable realtime model loaders.
|