@breadstone/archipel-mcp 0.0.53 → 0.0.55
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-image-generation.md +96 -0
- package/data/guides/ai-realtime-voice.md +69 -464
- package/data/guides/ai-text-generation.md +95 -622
- package/data/guides/index.md +3 -1
- package/data/guides/intelligence-prompts-warm-up.md +138 -0
- package/data/packages/platform-intelligence/api/Class.AnthropicIntelligenceProviderAdapter.md +78 -0
- package/data/packages/platform-intelligence/api/Class.DefaultIntelligencePromptPolicyAdapter.md +54 -0
- package/data/packages/platform-intelligence/api/Class.GatewayIntelligenceProviderAdapter.md +78 -0
- package/data/packages/platform-intelligence/api/Class.GoogleIntelligenceProviderAdapter.md +78 -0
- package/data/packages/platform-intelligence/api/Class.GrokIntelligenceProviderAdapter.md +78 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceAgent.md +95 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceAgentFactory.md +11 -23
- package/data/packages/platform-intelligence/api/Class.IntelligenceEmbeddingGenerator.md +25 -21
- package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +11 -7
- package/data/packages/platform-intelligence/api/Class.IntelligenceLanguageGenerator.md +159 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceMediaGenerator.md +60 -38
- 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.IntelligenceProviderAssetUploader.md +21 -15
- package/data/packages/platform-intelligence/api/Class.IntelligenceProviderDiagnostics.md +55 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceProviderError.md +14 -4
- package/data/packages/platform-intelligence/api/Class.IntelligenceProviderRegistry.md +68 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeError.md +9 -9
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeMeteringPort.md +2 -2
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeSessionFactory.md +12 -12
- package/data/packages/platform-intelligence/api/Class.IntelligenceRealtimeSessionPort.md +18 -18
- package/data/packages/platform-intelligence/api/Class.IntelligenceReranker.md +58 -0
- package/data/packages/platform-intelligence/api/Class.IntelligenceToolBase.md +14 -16
- package/data/packages/platform-intelligence/api/Class.IntelligenceToolRegistry.md +10 -14
- package/data/packages/platform-intelligence/api/Class.MiMoIntelligenceProviderAdapter.md +78 -0
- package/data/packages/platform-intelligence/api/Class.OpenAIIntelligenceProviderAdapter.md +102 -0
- package/data/packages/platform-intelligence/api/Function.createAnthropicAdvisor20260301Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicBash20241022Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicBash20250124Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20250522Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20250825Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicCodeExecution20260120Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20241022Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20250124Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicComputer20251124Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicMemory20250818Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20241022Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250124Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250429Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicTextEditor20250728Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicToolSearchBM2520251119Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicToolSearchRegex20251119Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebFetch20250910Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebFetch20260209Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebSearch20250305Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createAnthropicWebSearch20260209Tool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleCodeExecutionTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleEnterpriseWebSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleFileSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleGoogleMapsTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleGoogleSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleUrlContextTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGoogleVertexRagStoreTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokCodeExecutionTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokFileSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokMcpServerTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokViewImageTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokViewXVideoTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokWebSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createGrokXSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createIntelligenceJsonSchema.md +31 -0
- package/data/packages/platform-intelligence/api/Function.createIntelligenceTool.md +2 -2
- package/data/packages/platform-intelligence/api/Function.createMimoCustomTool.md +5 -5
- package/data/packages/platform-intelligence/api/Function.createOpenAIApplyPatchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAICodeInterpreterTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAICustomTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIFileSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIImageGenerationTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAILocalShellTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIMcpTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIShellTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIToolSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIWebSearchPreviewTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.createOpenAIWebSearchTool.md +1 -1
- package/data/packages/platform-intelligence/api/Function.defineIntelligenceTool.md +31 -0
- package/data/packages/platform-intelligence/api/Function.intelligencePrompt.md +31 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceAgentConfiguration.md +70 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceEmbeddingBatchOptions.md +124 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceEmbeddingBatchResult.md +70 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceEmbeddingOptions.md +114 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceEmbeddingResult.md +70 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceFileUploadOptions.md +102 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceFileUploadResult.md +60 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceGeneratedFile.md +40 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceGenerationStepStartEvent.md +50 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceImageGenerationOptions.md +170 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceImageGenerationResult.md +60 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceLanguageCompletion.md +141 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceLanguageGenerationOptions.md +234 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceLanguageStream.md +50 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModelReference.md +34 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModelRequestOptions.md +52 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModelStatus.md +30 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceModuleOptions.md +43 -25
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceObjectStream.md +56 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePrompt.md +50 -0
- 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 +127 -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.IIntelligenceProviderAdapter.md +73 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderConfiguration.md +10 -10
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderLoadRequest.md +40 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderProbeResult.md +70 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeAudioFormat.md +3 -3
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeCloseEvent.md +4 -4
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeModuleOptions.md +9 -21
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeSessionConfiguration.md +11 -11
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeSessionOptions.md +11 -11
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeToolDefinition.md +5 -5
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeTranscriptionConfiguration.md +4 -4
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeTurnDetectionConfiguration.md +5 -5
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRealtimeUsage.md +10 -10
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRequestOptions.md +98 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRerankingOptions.md +140 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceRerankingResult.md +50 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceSkillUploadOptions.md +94 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceSkillUploadResult.md +80 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceSpeechGenerationOptions.md +164 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceSpeechGenerationResult.md +50 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceStreamingTranscriptionOptions.md +139 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTool.md +7 -10
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceToolCall.md +40 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceToolDefinition.md +91 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceToolExecutionEndEvent.md +50 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceToolExecutionStartEvent.md +30 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceToolRegistry.md +4 -4
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTranscriptionOptions.md +114 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTranscriptionResult.md +84 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTranscriptionStream.md +97 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceUsage.md +40 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceVideoGenerationOptions.md +229 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceVideoGenerationResult.md +50 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IIntelligenceModelMessage.md +43 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IIntelligencePromptModelRequirement.md +25 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IIntelligenceSchema.md +70 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceCapability.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceDefaultModels.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceJsonValue.md +22 -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.IntelligenceProviderName.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceProviderOptions.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceProviderProbeStatus.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceProviderToolOptions.md +17 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeClientEvent.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMetadataValue.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeMeteringEvent.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeServerEvent.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeStatus.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRequestTimeouts.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceToolChoice.md +21 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceToolOutput.md +22 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceToolSet.md +14 -0
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceTranscriptionStreamPart.md +46 -0
- package/data/packages/platform-intelligence/api/Variable.AI_GATEWAY_API_KEY.md +14 -0
- package/data/packages/platform-intelligence/api/Variable.AI_GATEWAY_BASE_URL.md +14 -0
- package/data/packages/platform-intelligence/api/Variable.AI_GATEWAY_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_API_KEY.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_BASE_URL.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_MAX_OUTPUT_TOKENS.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_MODEL.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_PROVIDER.md +2 -2
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_TEMPERATURE.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.INTELLIGENCE_TOP_P.md +1 -1
- package/data/packages/platform-intelligence/api/Variable.IntelligenceCapabilityNames.md +40 -0
- package/data/packages/platform-intelligence/api/Variable.IntelligenceProviderNames.md +2 -0
- package/data/packages/platform-intelligence/api/Variable.PLATFORM_INTELLIGENCE_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-intelligence/api/index.md +98 -30
- package/package.json +1 -1
- package/data/packages/index.md +0 -8
- package/data/packages/platform-analytics/index.md +0 -209
- package/data/packages/platform-authentication/index.md +0 -725
- package/data/packages/platform-blob-storage/index.md +0 -416
- package/data/packages/platform-bootstrap/index.md +0 -162
- package/data/packages/platform-caching/index.md +0 -167
- package/data/packages/platform-configuration/index.md +0 -226
- package/data/packages/platform-core/index.md +0 -504
- package/data/packages/platform-cryptography/index.md +0 -142
- package/data/packages/platform-database/index.md +0 -337
- package/data/packages/platform-documents/index.md +0 -255
- package/data/packages/platform-esigning/index.md +0 -710
- package/data/packages/platform-feature-flags/index.md +0 -103
- package/data/packages/platform-health/index.md +0 -141
- package/data/packages/platform-intelligence/api/Class.IntelligenceStructuredGenerator.md +0 -70
- package/data/packages/platform-intelligence/api/Class.IntelligenceTelemetryRegistry.md +0 -44
- package/data/packages/platform-intelligence/api/Class.IntelligenceTextGenerator.md +0 -138
- package/data/packages/platform-intelligence/api/Function.createProviderOptions.md +0 -39
- package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +0 -26
- package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +0 -26
- package/data/packages/platform-intelligence/api/Function.loadGoogleRealtimeModel.md +0 -25
- package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +0 -26
- package/data/packages/platform-intelligence/api/Function.loadGrokRealtimeModel.md +0 -25
- package/data/packages/platform-intelligence/api/Function.loadMimoLanguageModel.md +0 -26
- package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +0 -26
- package/data/packages/platform-intelligence/api/Function.loadOpenAIRealtimeModel.md +0 -25
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCompletionUsage.md +0 -46
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextCompletion.md +0 -168
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerationOptions.md +0 -144
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerator.md +0 -78
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextStreamingOptions.md +0 -170
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md +0 -24
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoaders.md +0 -14
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeModelLoader.md +0 -25
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceRealtimeModelLoaders.md +0 -14
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceTextStream.md +0 -14
- package/data/packages/platform-intelligence/index.md +0 -549
- package/data/packages/platform-logging/index.md +0 -150
- package/data/packages/platform-mailing/index.md +0 -470
- package/data/packages/platform-mapping/index.md +0 -123
- package/data/packages/platform-mcp/index.md +0 -335
- package/data/packages/platform-openapi/index.md +0 -207
- package/data/packages/platform-payments/index.md +0 -610
- package/data/packages/platform-queue/index.md +0 -192
- package/data/packages/platform-reporting/index.md +0 -233
- package/data/packages/platform-resources/index.md +0 -137
- package/data/packages/platform-telemetry/index.md +0 -262
|
@@ -5,18 +5,26 @@ editUrl: false
|
|
|
5
5
|
---
|
|
6
6
|
# Class: IntelligenceEmbeddingGenerator
|
|
7
7
|
|
|
8
|
-
Defined in: [IntelligenceEmbeddingGenerator.ts:
|
|
8
|
+
Defined in: [IntelligenceEmbeddingGenerator.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceEmbeddingGenerator.ts#L27)
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Provider-neutral single and batch embedding facade.
|
|
11
11
|
|
|
12
12
|
## Constructors
|
|
13
13
|
|
|
14
14
|
### Constructor
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
new IntelligenceEmbeddingGenerator(): IntelligenceEmbeddingGenerator;
|
|
17
|
+
new IntelligenceEmbeddingGenerator(modelResolver): IntelligenceEmbeddingGenerator;
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Defined in: [IntelligenceEmbeddingGenerator.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceEmbeddingGenerator.ts#L36)
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `modelResolver` | `IntelligenceModelResolver` |
|
|
27
|
+
|
|
20
28
|
#### Returns
|
|
21
29
|
|
|
22
30
|
`IntelligenceEmbeddingGenerator`
|
|
@@ -26,45 +34,41 @@ new IntelligenceEmbeddingGenerator(): IntelligenceEmbeddingGenerator;
|
|
|
26
34
|
### embed()
|
|
27
35
|
|
|
28
36
|
```ts
|
|
29
|
-
embed(options): Promise<
|
|
37
|
+
embed(options): Promise<IIntelligenceEmbeddingResult>;
|
|
30
38
|
```
|
|
31
39
|
|
|
32
|
-
Defined in: [IntelligenceEmbeddingGenerator.ts:
|
|
40
|
+
Defined in: [IntelligenceEmbeddingGenerator.ts:53](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceEmbeddingGenerator.ts#L53)
|
|
33
41
|
|
|
34
|
-
Embeds
|
|
42
|
+
Embeds one text value.
|
|
35
43
|
|
|
36
44
|
#### Parameters
|
|
37
45
|
|
|
38
|
-
| Parameter | Type |
|
|
39
|
-
| ------ | ------ |
|
|
40
|
-
| `options` |
|
|
46
|
+
| Parameter | Type |
|
|
47
|
+
| ------ | ------ |
|
|
48
|
+
| `options` | [`IIntelligenceEmbeddingOptions`](Interface.IIntelligenceEmbeddingOptions) |
|
|
41
49
|
|
|
42
50
|
#### Returns
|
|
43
51
|
|
|
44
|
-
`Promise
|
|
45
|
-
|
|
46
|
-
The native AI SDK embedding result.
|
|
52
|
+
`Promise`\<[`IIntelligenceEmbeddingResult`](Interface.IIntelligenceEmbeddingResult)\>
|
|
47
53
|
|
|
48
54
|
***
|
|
49
55
|
|
|
50
56
|
### embedMany()
|
|
51
57
|
|
|
52
58
|
```ts
|
|
53
|
-
embedMany(options): Promise<
|
|
59
|
+
embedMany(options): Promise<IIntelligenceEmbeddingBatchResult>;
|
|
54
60
|
```
|
|
55
61
|
|
|
56
|
-
Defined in: [IntelligenceEmbeddingGenerator.ts:
|
|
62
|
+
Defined in: [IntelligenceEmbeddingGenerator.ts:85](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceEmbeddingGenerator.ts#L85)
|
|
57
63
|
|
|
58
|
-
Embeds multiple values.
|
|
64
|
+
Embeds multiple values with bounded provider parallelism.
|
|
59
65
|
|
|
60
66
|
#### Parameters
|
|
61
67
|
|
|
62
|
-
| Parameter | Type |
|
|
63
|
-
| ------ | ------ |
|
|
64
|
-
| `options` |
|
|
68
|
+
| Parameter | Type |
|
|
69
|
+
| ------ | ------ |
|
|
70
|
+
| `options` | [`IIntelligenceEmbeddingBatchOptions`](Interface.IIntelligenceEmbeddingBatchOptions) |
|
|
65
71
|
|
|
66
72
|
#### Returns
|
|
67
73
|
|
|
68
|
-
`Promise
|
|
69
|
-
|
|
70
|
-
The native AI SDK embedding result.
|
|
74
|
+
`Promise`\<[`IIntelligenceEmbeddingBatchResult`](Interface.IIntelligenceEmbeddingBatchResult)\>
|
|
@@ -5,7 +5,7 @@ editUrl: false
|
|
|
5
5
|
---
|
|
6
6
|
# Class: IntelligenceHealthIndicator
|
|
7
7
|
|
|
8
|
-
Defined in: [health/IntelligenceHealthIndicator.ts:
|
|
8
|
+
Defined in: [health/IntelligenceHealthIndicator.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/health/IntelligenceHealthIndicator.ts#L20)
|
|
9
9
|
|
|
10
10
|
Health indicator for the intelligence infrastructure.
|
|
11
11
|
Verifies that the intelligence provider configuration can be resolved.
|
|
@@ -19,16 +19,20 @@ Verifies that the intelligence provider configuration can be resolved.
|
|
|
19
19
|
### Constructor
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
new IntelligenceHealthIndicator(
|
|
22
|
+
new IntelligenceHealthIndicator(
|
|
23
|
+
providerRegistry?,
|
|
24
|
+
languageGenerator?,
|
|
25
|
+
realtimeSessionFactory?): IntelligenceHealthIndicator;
|
|
23
26
|
```
|
|
24
27
|
|
|
25
|
-
Defined in: [health/IntelligenceHealthIndicator.ts:
|
|
28
|
+
Defined in: [health/IntelligenceHealthIndicator.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/health/IntelligenceHealthIndicator.ts#L31)
|
|
26
29
|
|
|
27
30
|
#### Parameters
|
|
28
31
|
|
|
29
32
|
| Parameter | Type |
|
|
30
33
|
| ------ | ------ |
|
|
31
|
-
| `
|
|
34
|
+
| `providerRegistry?` | [`IntelligenceProviderRegistry`](Class.IntelligenceProviderRegistry) |
|
|
35
|
+
| `languageGenerator?` | [`IntelligenceLanguageGenerator`](Class.IntelligenceLanguageGenerator) |
|
|
32
36
|
| `realtimeSessionFactory?` | [`IntelligenceRealtimeSessionFactory`](Class.IntelligenceRealtimeSessionFactory) |
|
|
33
37
|
|
|
34
38
|
#### Returns
|
|
@@ -43,7 +47,7 @@ Defined in: [health/IntelligenceHealthIndicator.ts:28](https://github.com/RueDeR
|
|
|
43
47
|
readonly key: string = 'intelligence';
|
|
44
48
|
```
|
|
45
49
|
|
|
46
|
-
Defined in: [health/IntelligenceHealthIndicator.ts:
|
|
50
|
+
Defined in: [health/IntelligenceHealthIndicator.ts:45](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/health/IntelligenceHealthIndicator.ts#L45)
|
|
47
51
|
|
|
48
52
|
Unique key identifying the indicator
|
|
49
53
|
|
|
@@ -61,10 +65,10 @@ IHealthIndicator.key
|
|
|
61
65
|
check(): HealthIndicatorResult<string>;
|
|
62
66
|
```
|
|
63
67
|
|
|
64
|
-
Defined in: [health/IntelligenceHealthIndicator.ts:
|
|
68
|
+
Defined in: [health/IntelligenceHealthIndicator.ts:58](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/health/IntelligenceHealthIndicator.ts#L58)
|
|
65
69
|
|
|
66
70
|
Verifies that the provider configuration can be resolved.
|
|
67
|
-
Returns disabled status when no
|
|
71
|
+
Returns disabled status when no intelligence generator is configured.
|
|
68
72
|
|
|
69
73
|
#### Returns
|
|
70
74
|
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: IntelligenceLanguageGenerator'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: IntelligenceLanguageGenerator
|
|
7
|
+
|
|
8
|
+
Defined in: IntelligenceLanguageGenerator.ts:80
|
|
9
|
+
|
|
10
|
+
Provider-neutral language generation, structured output, and streaming facade.
|
|
11
|
+
|
|
12
|
+
## Constructors
|
|
13
|
+
|
|
14
|
+
### Constructor
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
new IntelligenceLanguageGenerator(modelResolver, toolRegistry): IntelligenceLanguageGenerator;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: IntelligenceLanguageGenerator.ts:91
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `modelResolver` | `IntelligenceModelResolver` |
|
|
27
|
+
| `toolRegistry` | [`IntelligenceToolRegistry`](Class.IntelligenceToolRegistry) |
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`IntelligenceLanguageGenerator`
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### generateObject()
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
generateObject<T>(
|
|
39
|
+
prompt,
|
|
40
|
+
schema,
|
|
41
|
+
options?): Promise<IIntelligenceLanguageCompletion<T>>;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: IntelligenceLanguageGenerator.ts:121
|
|
45
|
+
|
|
46
|
+
Generates a schema-constrained object through the language capability.
|
|
47
|
+
|
|
48
|
+
#### Type Parameters
|
|
49
|
+
|
|
50
|
+
| Type Parameter |
|
|
51
|
+
| ------ |
|
|
52
|
+
| `T` |
|
|
53
|
+
|
|
54
|
+
#### Parameters
|
|
55
|
+
|
|
56
|
+
| Parameter | Type |
|
|
57
|
+
| ------ | ------ |
|
|
58
|
+
| `prompt` | [`IIntelligencePrompt`](Interface.IIntelligencePrompt) |
|
|
59
|
+
| `schema` | [`IIntelligenceSchema`](TypeAlias.IIntelligenceSchema)\<`T`\> |
|
|
60
|
+
| `options` | [`IIntelligenceLanguageGenerationOptions`](Interface.IIntelligenceLanguageGenerationOptions) |
|
|
61
|
+
|
|
62
|
+
#### Returns
|
|
63
|
+
|
|
64
|
+
`Promise`\<[`IIntelligenceLanguageCompletion`](Interface.IIntelligenceLanguageCompletion)\<`T`\>\>
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
|
|
68
|
+
### generateText()
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
generateText(prompt, options?): Promise<IIntelligenceLanguageCompletion<string>>;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Defined in: IntelligenceLanguageGenerator.ts:109
|
|
75
|
+
|
|
76
|
+
Generates plain text and normalized tool metadata.
|
|
77
|
+
|
|
78
|
+
#### Parameters
|
|
79
|
+
|
|
80
|
+
| Parameter | Type |
|
|
81
|
+
| ------ | ------ |
|
|
82
|
+
| `prompt` | [`IIntelligencePrompt`](Interface.IIntelligencePrompt) |
|
|
83
|
+
| `options` | [`IIntelligenceLanguageGenerationOptions`](Interface.IIntelligenceLanguageGenerationOptions) |
|
|
84
|
+
|
|
85
|
+
#### Returns
|
|
86
|
+
|
|
87
|
+
`Promise`\<[`IIntelligenceLanguageCompletion`](Interface.IIntelligenceLanguageCompletion)\<`string`\>\>
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### getDefaultModel()
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
getDefaultModel(): IIntelligenceModelStatus;
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Defined in: IntelligenceLanguageGenerator.ts:201
|
|
98
|
+
|
|
99
|
+
Returns the default language model without exposing credentials.
|
|
100
|
+
|
|
101
|
+
#### Returns
|
|
102
|
+
|
|
103
|
+
[`IIntelligenceModelStatus`](Interface.IIntelligenceModelStatus)
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### streamObject()
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
streamObject<T>(
|
|
111
|
+
prompt,
|
|
112
|
+
schema,
|
|
113
|
+
options?): Promise<IIntelligenceObjectStream<T>>;
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Defined in: IntelligenceLanguageGenerator.ts:166
|
|
117
|
+
|
|
118
|
+
Streams partial structured output through the language capability.
|
|
119
|
+
|
|
120
|
+
#### Type Parameters
|
|
121
|
+
|
|
122
|
+
| Type Parameter |
|
|
123
|
+
| ------ |
|
|
124
|
+
| `T` |
|
|
125
|
+
|
|
126
|
+
#### Parameters
|
|
127
|
+
|
|
128
|
+
| Parameter | Type |
|
|
129
|
+
| ------ | ------ |
|
|
130
|
+
| `prompt` | [`IIntelligencePrompt`](Interface.IIntelligencePrompt) |
|
|
131
|
+
| `schema` | [`IIntelligenceSchema`](TypeAlias.IIntelligenceSchema)\<`T`\> |
|
|
132
|
+
| `options` | [`IIntelligenceLanguageGenerationOptions`](Interface.IIntelligenceLanguageGenerationOptions) |
|
|
133
|
+
|
|
134
|
+
#### Returns
|
|
135
|
+
|
|
136
|
+
`Promise`\<[`IIntelligenceObjectStream`](Interface.IIntelligenceObjectStream)\<`T`\>\>
|
|
137
|
+
|
|
138
|
+
***
|
|
139
|
+
|
|
140
|
+
### streamText()
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
streamText(prompt, options?): Promise<IIntelligenceLanguageStream>;
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Defined in: IntelligenceLanguageGenerator.ts:139
|
|
147
|
+
|
|
148
|
+
Streams text without exposing the native AI SDK stream object.
|
|
149
|
+
|
|
150
|
+
#### Parameters
|
|
151
|
+
|
|
152
|
+
| Parameter | Type |
|
|
153
|
+
| ------ | ------ |
|
|
154
|
+
| `prompt` | [`IIntelligencePrompt`](Interface.IIntelligencePrompt) |
|
|
155
|
+
| `options` | [`IIntelligenceLanguageGenerationOptions`](Interface.IIntelligenceLanguageGenerationOptions) |
|
|
156
|
+
|
|
157
|
+
#### Returns
|
|
158
|
+
|
|
159
|
+
`Promise`\<[`IIntelligenceLanguageStream`](Interface.IIntelligenceLanguageStream)\>
|
|
@@ -5,18 +5,26 @@ editUrl: false
|
|
|
5
5
|
---
|
|
6
6
|
# Class: IntelligenceMediaGenerator
|
|
7
7
|
|
|
8
|
-
Defined in: [IntelligenceMediaGenerator.ts:
|
|
8
|
+
Defined in: [IntelligenceMediaGenerator.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L49)
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Single provider-neutral facade for image, speech, transcription, and video.
|
|
11
11
|
|
|
12
12
|
## Constructors
|
|
13
13
|
|
|
14
14
|
### Constructor
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
new IntelligenceMediaGenerator(): IntelligenceMediaGenerator;
|
|
17
|
+
new IntelligenceMediaGenerator(modelResolver): IntelligenceMediaGenerator;
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Defined in: [IntelligenceMediaGenerator.ts:59](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L59)
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `modelResolver` | `IntelligenceModelResolver` |
|
|
27
|
+
|
|
20
28
|
#### Returns
|
|
21
29
|
|
|
22
30
|
`IntelligenceMediaGenerator`
|
|
@@ -26,93 +34,107 @@ new IntelligenceMediaGenerator(): IntelligenceMediaGenerator;
|
|
|
26
34
|
### generateImage()
|
|
27
35
|
|
|
28
36
|
```ts
|
|
29
|
-
generateImage(options): Promise<
|
|
37
|
+
generateImage(options): Promise<IIntelligenceImageGenerationResult>;
|
|
30
38
|
```
|
|
31
39
|
|
|
32
|
-
Defined in: [IntelligenceMediaGenerator.ts:
|
|
40
|
+
Defined in: [IntelligenceMediaGenerator.ts:76](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L76)
|
|
33
41
|
|
|
34
|
-
Generates
|
|
42
|
+
Generates one or more images.
|
|
35
43
|
|
|
36
44
|
#### Parameters
|
|
37
45
|
|
|
38
|
-
| Parameter | Type |
|
|
39
|
-
| ------ | ------ |
|
|
40
|
-
| `options` |
|
|
46
|
+
| Parameter | Type |
|
|
47
|
+
| ------ | ------ |
|
|
48
|
+
| `options` | [`IIntelligenceImageGenerationOptions`](Interface.IIntelligenceImageGenerationOptions) |
|
|
41
49
|
|
|
42
50
|
#### Returns
|
|
43
51
|
|
|
44
|
-
`Promise
|
|
45
|
-
|
|
46
|
-
The native AI SDK image-generation result.
|
|
52
|
+
`Promise`\<[`IIntelligenceImageGenerationResult`](Interface.IIntelligenceImageGenerationResult)\>
|
|
47
53
|
|
|
48
54
|
***
|
|
49
55
|
|
|
50
56
|
### generateSpeech()
|
|
51
57
|
|
|
52
58
|
```ts
|
|
53
|
-
generateSpeech(options): Promise<
|
|
59
|
+
generateSpeech(options): Promise<IIntelligenceSpeechGenerationResult>;
|
|
54
60
|
```
|
|
55
61
|
|
|
56
|
-
Defined in: [IntelligenceMediaGenerator.ts:
|
|
62
|
+
Defined in: [IntelligenceMediaGenerator.ts:119](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L119)
|
|
57
63
|
|
|
58
|
-
Generates
|
|
64
|
+
Generates spoken audio from text.
|
|
59
65
|
|
|
60
66
|
#### Parameters
|
|
61
67
|
|
|
62
|
-
| Parameter | Type |
|
|
63
|
-
| ------ | ------ |
|
|
64
|
-
| `options` |
|
|
68
|
+
| Parameter | Type |
|
|
69
|
+
| ------ | ------ |
|
|
70
|
+
| `options` | [`IIntelligenceSpeechGenerationOptions`](Interface.IIntelligenceSpeechGenerationOptions) |
|
|
65
71
|
|
|
66
72
|
#### Returns
|
|
67
73
|
|
|
68
|
-
`Promise
|
|
69
|
-
|
|
70
|
-
The native AI SDK speech-generation result.
|
|
74
|
+
`Promise`\<[`IIntelligenceSpeechGenerationResult`](Interface.IIntelligenceSpeechGenerationResult)\>
|
|
71
75
|
|
|
72
76
|
***
|
|
73
77
|
|
|
74
78
|
### generateVideo()
|
|
75
79
|
|
|
76
80
|
```ts
|
|
77
|
-
generateVideo(options): Promise<
|
|
81
|
+
generateVideo(options): Promise<IIntelligenceVideoGenerationResult>;
|
|
78
82
|
```
|
|
79
83
|
|
|
80
|
-
Defined in: [IntelligenceMediaGenerator.ts:
|
|
84
|
+
Defined in: [IntelligenceMediaGenerator.ts:235](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L235)
|
|
81
85
|
|
|
82
|
-
Generates
|
|
86
|
+
Generates one or more videos.
|
|
83
87
|
|
|
84
88
|
#### Parameters
|
|
85
89
|
|
|
86
|
-
| Parameter | Type |
|
|
87
|
-
| ------ | ------ |
|
|
88
|
-
| `options` |
|
|
90
|
+
| Parameter | Type |
|
|
91
|
+
| ------ | ------ |
|
|
92
|
+
| `options` | [`IIntelligenceVideoGenerationOptions`](Interface.IIntelligenceVideoGenerationOptions) |
|
|
89
93
|
|
|
90
94
|
#### Returns
|
|
91
95
|
|
|
92
|
-
`Promise
|
|
96
|
+
`Promise`\<[`IIntelligenceVideoGenerationResult`](Interface.IIntelligenceVideoGenerationResult)\>
|
|
97
|
+
|
|
98
|
+
***
|
|
99
|
+
|
|
100
|
+
### streamTranscription()
|
|
93
101
|
|
|
94
|
-
|
|
102
|
+
```ts
|
|
103
|
+
streamTranscription(options): Promise<IIntelligenceTranscriptionStream>;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Defined in: [IntelligenceMediaGenerator.ts:187](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L187)
|
|
107
|
+
|
|
108
|
+
Streams incremental and final transcripts from live raw audio.
|
|
109
|
+
|
|
110
|
+
#### Parameters
|
|
111
|
+
|
|
112
|
+
| Parameter | Type |
|
|
113
|
+
| ------ | ------ |
|
|
114
|
+
| `options` | [`IIntelligenceStreamingTranscriptionOptions`](Interface.IIntelligenceStreamingTranscriptionOptions) |
|
|
115
|
+
|
|
116
|
+
#### Returns
|
|
117
|
+
|
|
118
|
+
`Promise`\<[`IIntelligenceTranscriptionStream`](Interface.IIntelligenceTranscriptionStream)\>
|
|
95
119
|
|
|
96
120
|
***
|
|
97
121
|
|
|
98
122
|
### transcribe()
|
|
99
123
|
|
|
100
124
|
```ts
|
|
101
|
-
transcribe(options): Promise<
|
|
125
|
+
transcribe(options): Promise<IIntelligenceTranscriptionResult>;
|
|
102
126
|
```
|
|
103
127
|
|
|
104
|
-
Defined in: [IntelligenceMediaGenerator.ts:
|
|
128
|
+
Defined in: [IntelligenceMediaGenerator.ts:154](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceMediaGenerator.ts#L154)
|
|
105
129
|
|
|
106
|
-
Transcribes audio
|
|
130
|
+
Transcribes bounded audio input.
|
|
107
131
|
|
|
108
132
|
#### Parameters
|
|
109
133
|
|
|
110
|
-
| Parameter | Type |
|
|
111
|
-
| ------ | ------ |
|
|
112
|
-
| `options` |
|
|
134
|
+
| Parameter | Type |
|
|
135
|
+
| ------ | ------ |
|
|
136
|
+
| `options` | [`IIntelligenceTranscriptionOptions`](Interface.IIntelligenceTranscriptionOptions) |
|
|
113
137
|
|
|
114
138
|
#### Returns
|
|
115
139
|
|
|
116
|
-
`Promise
|
|
117
|
-
|
|
118
|
-
The native AI SDK transcription result.
|
|
140
|
+
`Promise`\<[`IIntelligenceTranscriptionResult`](Interface.IIntelligenceTranscriptionResult)\>
|
|
@@ -5,7 +5,7 @@ editUrl: false
|
|
|
5
5
|
---
|
|
6
6
|
# Class: IntelligenceModule
|
|
7
7
|
|
|
8
|
-
Defined in: [IntelligenceModule.ts:
|
|
8
|
+
Defined in: [IntelligenceModule.ts:79](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceModule.ts#L79)
|
|
9
9
|
|
|
10
10
|
Core module exposing the shared intelligence infrastructure.
|
|
11
11
|
|
|
@@ -29,7 +29,7 @@ new IntelligenceModule(): IntelligenceModule;
|
|
|
29
29
|
static register(options?): DynamicModule;
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Defined in: [IntelligenceModule.ts:
|
|
32
|
+
Defined in: [IntelligenceModule.ts:90](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/IntelligenceModule.ts#L90)
|
|
33
33
|
|
|
34
34
|
Registers the intelligence module and optional class-based tools.
|
|
35
35
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: IntelligencePromptExecutor'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: IntelligencePromptExecutor
|
|
7
|
+
|
|
8
|
+
Defined in: [prompts/IntelligencePromptExecutor.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptExecutor.ts#L27)
|
|
9
|
+
|
|
10
|
+
Validates and executes reusable intelligence prompt invocations.
|
|
11
|
+
|
|
12
|
+
## Constructors
|
|
13
|
+
|
|
14
|
+
### Constructor
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
new IntelligencePromptExecutor(policy, languageGenerator): IntelligencePromptExecutor;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [prompts/IntelligencePromptExecutor.ts:37](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptExecutor.ts#L37)
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `policy` | [`IntelligencePromptPolicyPort`](Class.IntelligencePromptPolicyPort) |
|
|
27
|
+
| `languageGenerator` | [`IntelligenceLanguageGenerator`](Class.IntelligenceLanguageGenerator) |
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`IntelligencePromptExecutor`
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### execute()
|
|
36
|
+
|
|
37
|
+
#### Call Signature
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
execute<TInput, TMetadata>(invocation, context?): Promise<IIntelligencePromptExecutionResult<string, TMetadata>>;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Defined in: [prompts/IntelligencePromptExecutor.ts:50](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptExecutor.ts#L50)
|
|
44
|
+
|
|
45
|
+
##### Type Parameters
|
|
46
|
+
|
|
47
|
+
| Type Parameter |
|
|
48
|
+
| ------ |
|
|
49
|
+
| `TInput` |
|
|
50
|
+
| `TMetadata` |
|
|
51
|
+
|
|
52
|
+
##### Parameters
|
|
53
|
+
|
|
54
|
+
| Parameter | Type |
|
|
55
|
+
| ------ | ------ |
|
|
56
|
+
| `invocation` | [`IIntelligencePromptInvocation`](Interface.IIntelligencePromptInvocation)\<`TInput`, `string`, `"text"`, `TMetadata`\> |
|
|
57
|
+
| `context?` | [`IIntelligencePromptExecutionContext`](Interface.IIntelligencePromptExecutionContext) |
|
|
58
|
+
|
|
59
|
+
##### Returns
|
|
60
|
+
|
|
61
|
+
`Promise`\<[`IIntelligencePromptExecutionResult`](Interface.IIntelligencePromptExecutionResult)\<`string`, `TMetadata`\>\>
|
|
62
|
+
|
|
63
|
+
#### Call Signature
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
execute<TInput, TOutput, TMetadata>(invocation, context?): Promise<IIntelligencePromptExecutionResult<TOutput, TMetadata>>;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [prompts/IntelligencePromptExecutor.ts:54](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptExecutor.ts#L54)
|
|
70
|
+
|
|
71
|
+
##### Type Parameters
|
|
72
|
+
|
|
73
|
+
| Type Parameter |
|
|
74
|
+
| ------ |
|
|
75
|
+
| `TInput` |
|
|
76
|
+
| `TOutput` |
|
|
77
|
+
| `TMetadata` |
|
|
78
|
+
|
|
79
|
+
##### Parameters
|
|
80
|
+
|
|
81
|
+
| Parameter | Type |
|
|
82
|
+
| ------ | ------ |
|
|
83
|
+
| `invocation` | [`IIntelligencePromptInvocation`](Interface.IIntelligencePromptInvocation)\<`TInput`, `TOutput`, `"object"`, `TMetadata`\> |
|
|
84
|
+
| `context?` | [`IIntelligencePromptExecutionContext`](Interface.IIntelligencePromptExecutionContext) |
|
|
85
|
+
|
|
86
|
+
##### Returns
|
|
87
|
+
|
|
88
|
+
`Promise`\<[`IIntelligencePromptExecutionResult`](Interface.IIntelligencePromptExecutionResult)\<`TOutput`, `TMetadata`\>\>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Abstract Class: IntelligencePromptPolicyPort'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Abstract Class: IntelligencePromptPolicyPort
|
|
7
|
+
|
|
8
|
+
Defined in: [prompts/IntelligencePromptPolicyPort.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptPolicyPort.ts#L15)
|
|
9
|
+
|
|
10
|
+
Resolves provider-neutral prompt requirements into effective generation settings.
|
|
11
|
+
|
|
12
|
+
This abstract class also serves as the NestJS dependency injection token.
|
|
13
|
+
|
|
14
|
+
## Extended by
|
|
15
|
+
|
|
16
|
+
- [`DefaultIntelligencePromptPolicyAdapter`](Class.DefaultIntelligencePromptPolicyAdapter)
|
|
17
|
+
|
|
18
|
+
## Constructors
|
|
19
|
+
|
|
20
|
+
### Constructor
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
new IntelligencePromptPolicyPort(): IntelligencePromptPolicyPort;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
`IntelligencePromptPolicyPort`
|
|
29
|
+
|
|
30
|
+
## Methods
|
|
31
|
+
|
|
32
|
+
### resolve()
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
abstract resolve(request): Promise<IIntelligencePromptEffectivePolicy>;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Defined in: [prompts/IntelligencePromptPolicyPort.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/prompts/IntelligencePromptPolicyPort.ts#L18)
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Parameter | Type |
|
|
43
|
+
| ------ | ------ |
|
|
44
|
+
| `request` | [`IIntelligencePromptPolicyRequest`](Interface.IIntelligencePromptPolicyRequest) |
|
|
45
|
+
|
|
46
|
+
#### Returns
|
|
47
|
+
|
|
48
|
+
`Promise`\<[`IIntelligencePromptEffectivePolicy`](Interface.IIntelligencePromptEffectivePolicy)\>
|