@lore-co/bedrock 0.1.16 → 0.1.18
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/README.md +5 -2
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -78
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ const lore = new BedrockAgentCoreAdapter({
|
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
const prepared = await lore.
|
|
17
|
+
const prepared = await lore.prepareInvocationReliable({
|
|
18
18
|
eventId: request.id,
|
|
19
19
|
sessionId: request.sessionId,
|
|
20
20
|
prompt: request.prompt,
|
|
@@ -30,4 +30,7 @@ Persist the last assistant response in the host's session state and pass it as
|
|
|
30
30
|
turn, applies Lore's redaction policy, retrieves scoped knowledge, records a
|
|
31
31
|
delivery receipt, and returns the enriched prompt. It works with Bedrock model
|
|
32
32
|
providers and AgentCore-hosted frameworks because it does not depend on a
|
|
33
|
-
specific model SDK.
|
|
33
|
+
specific model SDK. `prepareInvocationReliable` uses Reliability v1 capture and
|
|
34
|
+
delivery responses; `prepareInvocation` remains available for legacy servers.
|
|
35
|
+
The package exports `BEDROCK_RELIABILITY_INTEGRATION` for machine-readable
|
|
36
|
+
capability discovery.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GenericAgentAdapter, type GenericAgentAdapterOptions, type GenericHostScopeInput, type GenericPreparedDelivery, type GenericProcessedTurn } from "@lore-co/adapter-generic";
|
|
2
|
-
import type { Memory, PairedTurnMessage, TurnScope } from "@lore-co/core";
|
|
2
|
+
import type { Memory, PairedTurnMessage, ReliableContextDeliveryResponse, ReliableTurnResponse, TurnScope } from "@lore-co/core";
|
|
3
|
+
export { BEDROCK_RELIABILITY_INTEGRATION, type ReliabilityIntegrationManifest, } from "@lore-co/core";
|
|
3
4
|
export type BedrockAgentCoreAdapterOptions = Omit<GenericAgentAdapterOptions, "id">;
|
|
4
5
|
export interface BedrockInvocationInput extends GenericHostScopeInput {
|
|
5
6
|
connector?: string;
|
|
@@ -27,6 +28,15 @@ export interface BedrockPreparedInvocation {
|
|
|
27
28
|
receiptId: string;
|
|
28
29
|
response: GenericPreparedDelivery | GenericProcessedTurn;
|
|
29
30
|
}
|
|
31
|
+
export interface BedrockReliablePreparedInvocation {
|
|
32
|
+
mode: "observation" | "turn";
|
|
33
|
+
prompt: string;
|
|
34
|
+
context: string;
|
|
35
|
+
memories: Memory[];
|
|
36
|
+
learned: Memory[];
|
|
37
|
+
receiptId: string;
|
|
38
|
+
response: ReliableContextDeliveryResponse | ReliableTurnResponse;
|
|
39
|
+
}
|
|
30
40
|
/**
|
|
31
41
|
* Host-side integration for Bedrock AgentCore applications. Bedrock is a
|
|
32
42
|
* platform rather than a local coding-agent executable, so callers invoke this
|
|
@@ -35,5 +45,6 @@ export interface BedrockPreparedInvocation {
|
|
|
35
45
|
export declare class BedrockAgentCoreAdapter extends GenericAgentAdapter {
|
|
36
46
|
constructor(options: BedrockAgentCoreAdapterOptions);
|
|
37
47
|
prepareInvocation(input: BedrockInvocationInput): Promise<BedrockPreparedInvocation>;
|
|
48
|
+
prepareInvocationReliable(input: BedrockInvocationInput): Promise<BedrockReliablePreparedInvocation>;
|
|
38
49
|
}
|
|
39
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGnB,KAAK,0BAA0B,EAE/B,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAE1B,MAAM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WAAW,iCAAiC;IAChD,IAAI,EAAE,aAAa,GAAG,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,+BAA+B,GAAG,oBAAoB,CAAC;CAClE;AAyHD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,mBAAmB;gBAClD,OAAO,EAAE,8BAA8B;IAI7C,iBAAiB,CACrB,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,yBAAyB,CAAC;IAoC/B,yBAAyB,CAC7B,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,iCAAiC,CAAC;CAqC9C"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { GenericAgentAdapter, normalizeHostScope, } from "@lore-co/adapter-generic";
|
|
1
|
+
import { GenericAgentAdapter, injectSharedMemory, normalizeHostScope, } from "@lore-co/adapter-generic";
|
|
2
|
+
export { BEDROCK_RELIABILITY_INTEGRATION, } from "@lore-co/core";
|
|
2
3
|
function required(value, field) {
|
|
3
4
|
const normalized = value.trim();
|
|
4
5
|
if (normalized === "") {
|
|
@@ -6,6 +7,92 @@ function required(value, field) {
|
|
|
6
7
|
}
|
|
7
8
|
return normalized;
|
|
8
9
|
}
|
|
10
|
+
function normalizeInvocation(input) {
|
|
11
|
+
const scope = normalizeHostScope(input);
|
|
12
|
+
return {
|
|
13
|
+
connector: input.connector?.trim() || "bedrock-agentcore",
|
|
14
|
+
eventId: required(input.eventId, "eventId"),
|
|
15
|
+
sessionId: required(input.sessionId, "sessionId"),
|
|
16
|
+
prompt: required(input.prompt, "prompt"),
|
|
17
|
+
scope,
|
|
18
|
+
learningScope: input.learningScope ?? scope,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function turnInput(input, normalized, previousAssistant) {
|
|
22
|
+
return {
|
|
23
|
+
connector: normalized.connector,
|
|
24
|
+
eventId: normalized.eventId,
|
|
25
|
+
sessionId: normalized.sessionId,
|
|
26
|
+
...(input.conversationId === undefined
|
|
27
|
+
? {}
|
|
28
|
+
: { conversationId: input.conversationId }),
|
|
29
|
+
previousAssistant,
|
|
30
|
+
currentUser: {
|
|
31
|
+
content: normalized.prompt,
|
|
32
|
+
...(input.promptId === undefined ? {} : { id: input.promptId }),
|
|
33
|
+
...(input.occurredAt === undefined
|
|
34
|
+
? {}
|
|
35
|
+
: { timestamp: input.occurredAt }),
|
|
36
|
+
},
|
|
37
|
+
scope: normalized.scope,
|
|
38
|
+
learningScope: normalized.learningScope,
|
|
39
|
+
task: normalized.prompt,
|
|
40
|
+
...(input.diff === undefined ? {} : { diff: input.diff }),
|
|
41
|
+
...(input.files === undefined ? {} : { files: [...input.files] }),
|
|
42
|
+
...(input.components === undefined
|
|
43
|
+
? {}
|
|
44
|
+
: { components: [...input.components] }),
|
|
45
|
+
...(input.symbols === undefined
|
|
46
|
+
? {}
|
|
47
|
+
: { symbols: [...input.symbols] }),
|
|
48
|
+
...(input.occurredAt === undefined
|
|
49
|
+
? {}
|
|
50
|
+
: { occurredAt: input.occurredAt }),
|
|
51
|
+
...(input.metadata === undefined ? {} : { metadata: input.metadata }),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function observationInput(input, normalized) {
|
|
55
|
+
return {
|
|
56
|
+
connector: normalized.connector,
|
|
57
|
+
eventId: normalized.eventId,
|
|
58
|
+
sessionId: normalized.sessionId,
|
|
59
|
+
...(input.conversationId === undefined
|
|
60
|
+
? {}
|
|
61
|
+
: { conversationId: input.conversationId }),
|
|
62
|
+
scope: normalized.scope,
|
|
63
|
+
learningScope: normalized.learningScope,
|
|
64
|
+
task: normalized.prompt,
|
|
65
|
+
messages: [
|
|
66
|
+
{
|
|
67
|
+
role: "user",
|
|
68
|
+
content: normalized.prompt,
|
|
69
|
+
...(input.promptId === undefined ? {} : { id: input.promptId }),
|
|
70
|
+
...(input.occurredAt === undefined
|
|
71
|
+
? {}
|
|
72
|
+
: { timestamp: input.occurredAt }),
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
occurredAt: input.occurredAt ?? new Date().toISOString(),
|
|
76
|
+
...(input.metadata === undefined ? {} : { metadata: input.metadata }),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function deliveryInput(input, normalized) {
|
|
80
|
+
return {
|
|
81
|
+
connector: normalized.connector,
|
|
82
|
+
eventId: `${normalized.eventId}:context`,
|
|
83
|
+
sessionId: normalized.sessionId,
|
|
84
|
+
scope: normalized.scope,
|
|
85
|
+
task: normalized.prompt,
|
|
86
|
+
...(input.diff === undefined ? {} : { diff: input.diff }),
|
|
87
|
+
...(input.files === undefined ? {} : { files: [...input.files] }),
|
|
88
|
+
...(input.components === undefined
|
|
89
|
+
? {}
|
|
90
|
+
: { components: [...input.components] }),
|
|
91
|
+
...(input.symbols === undefined
|
|
92
|
+
? {}
|
|
93
|
+
: { symbols: [...input.symbols] }),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
9
96
|
/**
|
|
10
97
|
* Host-side integration for Bedrock AgentCore applications. Bedrock is a
|
|
11
98
|
* platform rather than a local coding-agent executable, so callers invoke this
|
|
@@ -16,46 +103,9 @@ export class BedrockAgentCoreAdapter extends GenericAgentAdapter {
|
|
|
16
103
|
super({ ...options, id: "bedrock-agentcore" });
|
|
17
104
|
}
|
|
18
105
|
async prepareInvocation(input) {
|
|
19
|
-
const
|
|
20
|
-
const eventId = required(input.eventId, "eventId");
|
|
21
|
-
const sessionId = required(input.sessionId, "sessionId");
|
|
22
|
-
const prompt = required(input.prompt, "prompt");
|
|
23
|
-
const scope = normalizeHostScope(input);
|
|
24
|
-
const learningScope = input.learningScope ?? scope;
|
|
106
|
+
const normalized = normalizeInvocation(input);
|
|
25
107
|
if (input.previousAssistant !== undefined) {
|
|
26
|
-
const response = await this.processTurn(
|
|
27
|
-
connector,
|
|
28
|
-
eventId,
|
|
29
|
-
sessionId,
|
|
30
|
-
...(input.conversationId === undefined
|
|
31
|
-
? {}
|
|
32
|
-
: { conversationId: input.conversationId }),
|
|
33
|
-
previousAssistant: input.previousAssistant,
|
|
34
|
-
currentUser: {
|
|
35
|
-
content: prompt,
|
|
36
|
-
...(input.promptId === undefined ? {} : { id: input.promptId }),
|
|
37
|
-
...(input.occurredAt === undefined
|
|
38
|
-
? {}
|
|
39
|
-
: { timestamp: input.occurredAt }),
|
|
40
|
-
},
|
|
41
|
-
scope,
|
|
42
|
-
learningScope,
|
|
43
|
-
task: prompt,
|
|
44
|
-
...(input.diff === undefined ? {} : { diff: input.diff }),
|
|
45
|
-
...(input.files === undefined ? {} : { files: [...input.files] }),
|
|
46
|
-
...(input.components === undefined
|
|
47
|
-
? {}
|
|
48
|
-
: { components: [...input.components] }),
|
|
49
|
-
...(input.symbols === undefined
|
|
50
|
-
? {}
|
|
51
|
-
: { symbols: [...input.symbols] }),
|
|
52
|
-
...(input.occurredAt === undefined
|
|
53
|
-
? {}
|
|
54
|
-
: { occurredAt: input.occurredAt }),
|
|
55
|
-
...(input.metadata === undefined
|
|
56
|
-
? {}
|
|
57
|
-
: { metadata: input.metadata }),
|
|
58
|
-
}, input.idempotencyKey);
|
|
108
|
+
const response = await this.processTurn(turnInput(input, normalized, input.previousAssistant), input.idempotencyKey);
|
|
59
109
|
return {
|
|
60
110
|
mode: "turn",
|
|
61
111
|
prompt: response.prompt,
|
|
@@ -66,44 +116,8 @@ export class BedrockAgentCoreAdapter extends GenericAgentAdapter {
|
|
|
66
116
|
response,
|
|
67
117
|
};
|
|
68
118
|
}
|
|
69
|
-
const observation = await this.observeEvent(
|
|
70
|
-
|
|
71
|
-
eventId,
|
|
72
|
-
sessionId,
|
|
73
|
-
...(input.conversationId === undefined
|
|
74
|
-
? {}
|
|
75
|
-
: { conversationId: input.conversationId }),
|
|
76
|
-
scope,
|
|
77
|
-
learningScope,
|
|
78
|
-
task: prompt,
|
|
79
|
-
messages: [
|
|
80
|
-
{
|
|
81
|
-
role: "user",
|
|
82
|
-
content: prompt,
|
|
83
|
-
...(input.promptId === undefined ? {} : { id: input.promptId }),
|
|
84
|
-
...(input.occurredAt === undefined
|
|
85
|
-
? {}
|
|
86
|
-
: { timestamp: input.occurredAt }),
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
occurredAt: input.occurredAt ?? new Date().toISOString(),
|
|
90
|
-
...(input.metadata === undefined ? {} : { metadata: input.metadata }),
|
|
91
|
-
});
|
|
92
|
-
const response = await this.prepareDelivery({
|
|
93
|
-
connector,
|
|
94
|
-
eventId: `${eventId}:context`,
|
|
95
|
-
sessionId,
|
|
96
|
-
scope,
|
|
97
|
-
task: prompt,
|
|
98
|
-
...(input.diff === undefined ? {} : { diff: input.diff }),
|
|
99
|
-
...(input.files === undefined ? {} : { files: [...input.files] }),
|
|
100
|
-
...(input.components === undefined
|
|
101
|
-
? {}
|
|
102
|
-
: { components: [...input.components] }),
|
|
103
|
-
...(input.symbols === undefined
|
|
104
|
-
? {}
|
|
105
|
-
: { symbols: [...input.symbols] }),
|
|
106
|
-
});
|
|
119
|
+
const observation = await this.observeEvent(observationInput(input, normalized));
|
|
120
|
+
const response = await this.prepareDelivery(deliveryInput(input, normalized));
|
|
107
121
|
return {
|
|
108
122
|
mode: "observation",
|
|
109
123
|
prompt: response.prompt,
|
|
@@ -114,5 +128,33 @@ export class BedrockAgentCoreAdapter extends GenericAgentAdapter {
|
|
|
114
128
|
response,
|
|
115
129
|
};
|
|
116
130
|
}
|
|
131
|
+
async prepareInvocationReliable(input) {
|
|
132
|
+
const normalized = normalizeInvocation(input);
|
|
133
|
+
if (input.previousAssistant !== undefined) {
|
|
134
|
+
const response = await this.processTurnReliable(turnInput(input, normalized, input.previousAssistant), input.idempotencyKey);
|
|
135
|
+
const turn = response.turn;
|
|
136
|
+
return {
|
|
137
|
+
mode: "turn",
|
|
138
|
+
prompt: injectSharedMemory(normalized.prompt, turn.context.text),
|
|
139
|
+
context: turn.context.text,
|
|
140
|
+
memories: turn.context.memories,
|
|
141
|
+
learned: turn.observation.memories,
|
|
142
|
+
receiptId: turn.receipt.id,
|
|
143
|
+
response,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
const observation = await this.observeEventReliable(observationInput(input, normalized));
|
|
147
|
+
const response = await this.prepareDeliveryReliable(deliveryInput(input, normalized));
|
|
148
|
+
const delivery = response.delivery;
|
|
149
|
+
return {
|
|
150
|
+
mode: "observation",
|
|
151
|
+
prompt: injectSharedMemory(normalized.prompt, delivery.context),
|
|
152
|
+
context: delivery.context,
|
|
153
|
+
memories: delivery.memories,
|
|
154
|
+
learned: observation.observation.memories,
|
|
155
|
+
receiptId: delivery.receipt.id,
|
|
156
|
+
response,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
117
159
|
}
|
|
118
160
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GAQnB,MAAM,0BAA0B,CAAC;AASlC,OAAO,EACL,+BAA+B,GAEhC,MAAM,eAAe,CAAC;AA6CvB,SAAS,QAAQ,CAAC,KAAa,EAAE,KAAa;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,cAAc,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAWD,SAAS,mBAAmB,CAC1B,KAA6B;IAE7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ACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CACjD,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CACjC,CAAC;QACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QACnC,OAAO;YACL,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,kBAAkB,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;YAC/D,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,QAAQ;YACzC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC9B,QAAQ;SACT,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lore-co/bedrock",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Audited Lore adapter for Amazon Bedrock AgentCore hosts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"directory": "packages/adapters/bedrock"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@lore-co/adapter-generic": "0.1.
|
|
41
|
-
"@lore-co/core": "0.1.
|
|
40
|
+
"@lore-co/adapter-generic": "0.1.18",
|
|
41
|
+
"@lore-co/core": "0.1.18"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
|