@breadstone/archipel-mcp 0.0.7 → 0.0.8
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/packages/index.md +13 -6
- package/data/packages/platform-authentication/api/Class.AppleStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.AuthModule.md +3 -3
- package/data/packages/platform-authentication/api/Class.GithubStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.GoogleStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.MicrosoftStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Interface.IAuthModuleOptions.md +9 -9
- package/data/packages/{platform-core → platform-caching}/api/Class.MemoryLayeredCache.md +41 -33
- package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +158 -0
- package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +296 -0
- package/data/packages/platform-caching/api/Interface.ICacheMetricsRecorder.md +122 -0
- package/data/packages/platform-caching/api/Interface.ICacheStats.md +71 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCache.md +199 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +76 -0
- package/data/packages/platform-caching/api/Interface.IRedisLayeredCacheOptions.md +122 -0
- package/data/packages/platform-caching/api/index.md +25 -0
- package/data/packages/platform-caching/index.md +116 -0
- package/data/packages/platform-core/api/index.md +104 -150
- package/data/packages/platform-core/index.md +5 -3
- package/data/packages/platform-cryptography/api/Class.BcryptService.md +73 -0
- package/data/packages/platform-cryptography/api/Class.CryptoService.md +52 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Class.OtpService.md +8 -4
- package/data/packages/{platform-core → platform-cryptography}/api/Interface.IOtpService.md +8 -4
- package/data/packages/platform-cryptography/api/Interface.IOtpUriOptions.md +47 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.OTP_SERVICE_TOKEN.md +1 -1
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.TOTP_EPOCH_TOLERANCE.md +1 -1
- package/data/packages/platform-cryptography/api/index.md +29 -0
- package/data/packages/platform-cryptography/index.md +132 -0
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistrarBase.md +7 -5
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistry.md +19 -15
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceModule.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceTextGenerator.md +7 -7
- package/data/packages/platform-intelligence/api/Function.createProviderOptions.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadProviderFactory.md +32 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceArtifact.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapability.md +72 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityMetadata.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityPayload.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityRegistry.md +79 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityResult.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCompletionUsage.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContext.md +73 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContextBuilder.md +36 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationMessageSnapshot.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationSnapshot.md +59 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceFollowUpQuestion.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntent.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntentEntity.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessageModel.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessagePayload.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePrompt.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderConfiguration.md +95 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceResponseMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextCompletion.md +61 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerationOptions.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerator.md +54 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceConversationMessageRole.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md +25 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceProviderName.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Variable.IntelligenceConversationMessageRoles.md +6 -6
- package/data/packages/platform-intelligence/api/Variable.IntelligenceProviderNames.md +29 -0
- package/data/packages/platform-intelligence/api/index.md +70 -0
- package/data/packages/platform-intelligence/index.md +131 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryCacheMetricsRecorder.md +15 -15
- package/package.json +1 -1
- package/data/packages/platform-core/api/Class.BcryptService.md +0 -69
- package/data/packages/platform-core/api/Class.CryptoService.md +0 -50
- package/data/packages/platform-core/api/Class.NoopCacheMetricsRecorder.md +0 -157
- package/data/packages/platform-core/api/Class.RedisLayeredCache.md +0 -275
- package/data/packages/platform-core/api/Interface.ICacheMetricsRecorder.md +0 -121
- package/data/packages/platform-core/api/Interface.ICacheStats.md +0 -71
- package/data/packages/platform-core/api/Interface.IIntelligenceArtifact.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceCapability.md +0 -62
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityMetadata.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityPayload.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityRegistry.md +0 -69
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityResult.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCompletionUsage.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceContext.md +0 -63
- package/data/packages/platform-core/api/Interface.IIntelligenceContextBuilder.md +0 -32
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationMessageSnapshot.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationSnapshot.md +0 -51
- package/data/packages/platform-core/api/Interface.IIntelligenceFollowUpQuestion.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntent.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntentEntity.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceMessageModel.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceMessagePayload.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePrompt.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePromptMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceProviderConfiguration.md +0 -81
- package/data/packages/platform-core/api/Interface.IIntelligenceResponseMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceTextCompletion.md +0 -53
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerationOptions.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerator.md +0 -46
- package/data/packages/platform-core/api/Interface.ILayeredCache.md +0 -194
- package/data/packages/platform-core/api/Interface.ILayeredCacheOptions.md +0 -71
- package/data/packages/platform-core/api/Interface.IOtpUriOptions.md +0 -47
- package/data/packages/platform-core/api/Interface.IRedisLayeredCacheOptions.md +0 -108
- package/data/packages/platform-core/api/Variable.IntelligenceProviderNames.md +0 -29
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceArtifact'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceArtifact
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceArtifact.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L6)
|
|
10
|
+
|
|
11
|
+
Represents a structured artifact returned by a capability.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### data
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly data: Record<string, unknown>;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceArtifact.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L22)
|
|
22
|
+
|
|
23
|
+
The structured data payload of the artifact.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### type
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly type: string;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceArtifact.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L15)
|
|
34
|
+
|
|
35
|
+
The artifact type discriminator.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCapability'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCapability
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceCapability.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L16)
|
|
10
|
+
|
|
11
|
+
Abstraction implemented by all capability providers.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### metadata
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly metadata: IIntelligenceCapabilityMetadata;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceCapability.ts:25](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L25)
|
|
22
|
+
|
|
23
|
+
Metadata describing the capability for orchestration and analytics purposes.
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### canHandle()
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
canHandle(intent, context): boolean;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceCapability.ts:39](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L39)
|
|
34
|
+
|
|
35
|
+
Determines whether this capability can handle the given intent and context.
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
| Parameter | Type | Description |
|
|
40
|
+
| --------- | -------------------------------------------------------- | --------------------------------------- |
|
|
41
|
+
| `intent` | [`IIntelligenceIntent`](Interface.IIntelligenceIntent) | The structured intent to evaluate. |
|
|
42
|
+
| `context` | [`IIntelligenceContext`](Interface.IIntelligenceContext) | The aggregated context for the request. |
|
|
43
|
+
|
|
44
|
+
#### Returns
|
|
45
|
+
|
|
46
|
+
`boolean`
|
|
47
|
+
|
|
48
|
+
`true` if the capability can handle the intent; otherwise `false`.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### execute()
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
execute(payload): Promise<IIntelligenceCapabilityResult>;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Defined in: [contracts/IIntelligenceCapability.ts:48](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L48)
|
|
59
|
+
|
|
60
|
+
Executes the capability with the given payload.
|
|
61
|
+
|
|
62
|
+
#### Parameters
|
|
63
|
+
|
|
64
|
+
| Parameter | Type | Description |
|
|
65
|
+
| --------- | ---------------------------------------------------------------------------- | ------------------------------------ |
|
|
66
|
+
| `payload` | [`IIntelligenceCapabilityPayload`](Interface.IIntelligenceCapabilityPayload) | The payload forwarded for execution. |
|
|
67
|
+
|
|
68
|
+
#### Returns
|
|
69
|
+
|
|
70
|
+
`Promise`\<[`IIntelligenceCapabilityResult`](Interface.IIntelligenceCapabilityResult)\>
|
|
71
|
+
|
|
72
|
+
The capability execution result.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCapabilityMetadata'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCapabilityMetadata
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L6)
|
|
10
|
+
|
|
11
|
+
Metadata describing a capability for orchestration and analytics purposes.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### description
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly description: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L29)
|
|
22
|
+
|
|
23
|
+
A brief description of what the capability does.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### id
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly id: string;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L15)
|
|
34
|
+
|
|
35
|
+
Unique identifier for the capability.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### intentName
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly intentName: string;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:43](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L43)
|
|
46
|
+
|
|
47
|
+
The intent name this capability is designed to handle.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### name
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
readonly name: string;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L22)
|
|
58
|
+
|
|
59
|
+
Human-readable name of the capability.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### priority
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
readonly priority: number;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L36)
|
|
70
|
+
|
|
71
|
+
Evaluation priority (lower values are evaluated first).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCapabilityPayload'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCapabilityPayload
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceCapabilityPayload.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L13)
|
|
10
|
+
|
|
11
|
+
Payload forwarded to capabilities for execution.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### context
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly context: IIntelligenceContext;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceCapabilityPayload.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L29)
|
|
22
|
+
|
|
23
|
+
The aggregated context for the request.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### intent
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly intent: IIntelligenceIntent;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceCapabilityPayload.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L22)
|
|
34
|
+
|
|
35
|
+
The structured intent resolved from the user message.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### userMessage
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly userMessage: string;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceCapabilityPayload.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L36)
|
|
46
|
+
|
|
47
|
+
The raw user message that triggered the capability.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCapabilityRegistry'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCapabilityRegistry
|
|
8
|
+
|
|
9
|
+
Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L14)
|
|
10
|
+
|
|
11
|
+
Registry abstraction responsible for resolving capabilities.
|
|
12
|
+
|
|
13
|
+
## Methods
|
|
14
|
+
|
|
15
|
+
### list()
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
list(): readonly IIntelligenceCapability[];
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L42)
|
|
22
|
+
|
|
23
|
+
Returns a read-only snapshot of all registered capabilities.
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
readonly [`IIntelligenceCapability`](Interface.IIntelligenceCapability)[]
|
|
28
|
+
|
|
29
|
+
A defensive copy of the registered capabilities.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### register()
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
register(capability): void;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L24)
|
|
40
|
+
|
|
41
|
+
Registers a capability in the registry.
|
|
42
|
+
|
|
43
|
+
#### Parameters
|
|
44
|
+
|
|
45
|
+
| Parameter | Type | Description |
|
|
46
|
+
| ------------ | -------------------------------------------------------------- | --------------------------- |
|
|
47
|
+
| `capability` | [`IIntelligenceCapability`](Interface.IIntelligenceCapability) | The capability to register. |
|
|
48
|
+
|
|
49
|
+
#### Returns
|
|
50
|
+
|
|
51
|
+
`void`
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### resolve()
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
resolve(intent, context):
|
|
59
|
+
| IIntelligenceCapability
|
|
60
|
+
| null;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:34](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L34)
|
|
64
|
+
|
|
65
|
+
Resolves the most suitable capability for the given intent and context.
|
|
66
|
+
|
|
67
|
+
#### Parameters
|
|
68
|
+
|
|
69
|
+
| Parameter | Type | Description |
|
|
70
|
+
| --------- | -------------------------------------------------------- | --------------------------------------- |
|
|
71
|
+
| `intent` | [`IIntelligenceIntent`](Interface.IIntelligenceIntent) | The structured intent to match against. |
|
|
72
|
+
| `context` | [`IIntelligenceContext`](Interface.IIntelligenceContext) | The aggregated context for the request. |
|
|
73
|
+
|
|
74
|
+
#### Returns
|
|
75
|
+
|
|
76
|
+
\| [`IIntelligenceCapability`](Interface.IIntelligenceCapability)
|
|
77
|
+
\| `null`
|
|
78
|
+
|
|
79
|
+
The matching capability, or `null` if none qualifies.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCapabilityResult'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCapabilityResult
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceCapabilityResult.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L14)
|
|
10
|
+
|
|
11
|
+
Represents the outcome produced by a capability execution.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### artifacts
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly artifacts: readonly IIntelligenceArtifact[];
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceCapabilityResult.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L30)
|
|
22
|
+
|
|
23
|
+
Structured artifacts produced alongside the messages.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### followUps
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly followUps: readonly IIntelligenceFollowUpQuestion[];
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceCapabilityResult.ts:37](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L37)
|
|
34
|
+
|
|
35
|
+
Suggested follow-up questions to continue the dialogue.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### messages
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly messages: readonly IIntelligenceResponseMessage[];
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceCapabilityResult.ts:23](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L23)
|
|
46
|
+
|
|
47
|
+
The assistant messages produced by the capability.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceCompletionUsage'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceCompletionUsage
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceCompletionUsage.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L6)
|
|
10
|
+
|
|
11
|
+
Captures usage telemetry returned by the intelligence provider.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### completionTokens
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly completionTokens: number | null;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceCompletionUsage.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L22)
|
|
22
|
+
|
|
23
|
+
The number of tokens generated in the completion.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### promptTokens
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly promptTokens: number | null;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceCompletionUsage.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L15)
|
|
34
|
+
|
|
35
|
+
The number of tokens consumed by the prompt.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### totalTokens
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly totalTokens: number | null;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceCompletionUsage.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L29)
|
|
46
|
+
|
|
47
|
+
The total number of tokens (prompt + completion).
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceContext'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceContext
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceContext.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L12)
|
|
10
|
+
|
|
11
|
+
Describes the context aggregated before routing a request to a capability.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### conversationId
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly conversationId: string | null;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceContext.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L28)
|
|
22
|
+
|
|
23
|
+
The conversation identifier, or `null` for a new conversation.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### conversationPreview
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly conversationPreview:
|
|
31
|
+
| IIntelligenceConversationSnapshot
|
|
32
|
+
| null;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Defined in: [contracts/IIntelligenceContext.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L35)
|
|
36
|
+
|
|
37
|
+
A lightweight preview of the conversation history, or `null` when unavailable.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### nutritionSnapshot?
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
readonly optional nutritionSnapshot?: Record<string, unknown> | null;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Defined in: [contracts/IIntelligenceContext.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L49)
|
|
48
|
+
|
|
49
|
+
Optional nutrition snapshot for context enrichment.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### userId
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
readonly userId: string;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Defined in: [contracts/IIntelligenceContext.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L21)
|
|
60
|
+
|
|
61
|
+
The identifier of the requesting user.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### workoutSummary?
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
readonly optional workoutSummary?: Record<string, unknown> | null;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Defined in: [contracts/IIntelligenceContext.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L42)
|
|
72
|
+
|
|
73
|
+
Optional workout summary for context enrichment.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceContextBuilder'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceContextBuilder
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceContextBuilder.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContextBuilder.ts#L12)
|
|
10
|
+
|
|
11
|
+
Responsible for composing the context supplied to capabilities.
|
|
12
|
+
|
|
13
|
+
## Methods
|
|
14
|
+
|
|
15
|
+
### build()
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
build(userId, conversationId): Promise<IIntelligenceContext>;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceContextBuilder.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContextBuilder.ts#L24)
|
|
22
|
+
|
|
23
|
+
Builds the aggregated context for the given user and conversation.
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
| Parameter | Type | Description |
|
|
28
|
+
| ---------------- | ------------------ | -------------------------------------------------------------- |
|
|
29
|
+
| `userId` | `string` | The identifier of the requesting user. |
|
|
30
|
+
| `conversationId` | `string` \| `null` | The conversation identifier, or `null` for a new conversation. |
|
|
31
|
+
|
|
32
|
+
#### Returns
|
|
33
|
+
|
|
34
|
+
`Promise`\<[`IIntelligenceContext`](Interface.IIntelligenceContext)\>
|
|
35
|
+
|
|
36
|
+
The composed context instance.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceConversationMessageSnapshot'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceConversationMessageSnapshot
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L12)
|
|
10
|
+
|
|
11
|
+
Represents a single message returned within a conversation snapshot.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### content
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly content: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L35)
|
|
22
|
+
|
|
23
|
+
The textual content of the message.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### createdAt
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly createdAt: Date;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L42)
|
|
34
|
+
|
|
35
|
+
The timestamp when the message was created.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### id
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly id: string;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L21)
|
|
46
|
+
|
|
47
|
+
Unique identifier of the message.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### metadata?
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
readonly optional metadata?: unknown;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L49)
|
|
58
|
+
|
|
59
|
+
Optional metadata attached to the message.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### role
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
readonly role: IntelligenceConversationMessageRole;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L28)
|
|
70
|
+
|
|
71
|
+
The role of the message author.
|
package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationSnapshot.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceConversationSnapshot'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceConversationSnapshot
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceConversationSnapshot.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationSnapshot.ts#L12)
|
|
10
|
+
|
|
11
|
+
Represents a lightweight snapshot of a conversation used for context building.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### conversationId
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly conversationId: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceConversationSnapshot.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationSnapshot.ts#L21)
|
|
22
|
+
|
|
23
|
+
The unique conversation identifier.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### lastActivityAt
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly lastActivityAt: Date;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceConversationSnapshot.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationSnapshot.ts#L42)
|
|
34
|
+
|
|
35
|
+
The timestamp of the last activity in the conversation.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### lastMessages
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly lastMessages: readonly IIntelligenceConversationMessageSnapshot[];
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceConversationSnapshot.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationSnapshot.ts#L35)
|
|
46
|
+
|
|
47
|
+
The most recent messages in the conversation.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### title
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
readonly title: string | null;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [contracts/IIntelligenceConversationSnapshot.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationSnapshot.ts#L28)
|
|
58
|
+
|
|
59
|
+
The optional title of the conversation.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IIntelligenceFollowUpQuestion'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interface: IIntelligenceFollowUpQuestion
|
|
8
|
+
|
|
9
|
+
Defined in: [contracts/IIntelligenceFollowUpQuestion.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceFollowUpQuestion.ts#L6)
|
|
10
|
+
|
|
11
|
+
Represents a follow-up question suggested to keep the dialogue active.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### id
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
readonly id: string;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Defined in: [contracts/IIntelligenceFollowUpQuestion.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceFollowUpQuestion.ts#L15)
|
|
22
|
+
|
|
23
|
+
Unique identifier of the follow-up question.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### label
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly label: string;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Defined in: [contracts/IIntelligenceFollowUpQuestion.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceFollowUpQuestion.ts#L22)
|
|
34
|
+
|
|
35
|
+
The human-readable label displayed to the user.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### payload
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly payload: Record<string, unknown>;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: [contracts/IIntelligenceFollowUpQuestion.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceFollowUpQuestion.ts#L29)
|
|
46
|
+
|
|
47
|
+
The payload submitted when the follow-up is selected.
|