@aws-amplify/graphql-api-construct 1.15.1 → 1.16.0-ai-streaming.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +30 -30
- package/CHANGELOG.md +15 -0
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +9 -12
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/metadata.d.ts +4 -0
- package/lib/internal/metadata.js +42 -0
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +12 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +22 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +2 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +8 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +196 -34
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +34 -8
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +5 -3
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +20 -5
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +3 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +6 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.js +38 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +2 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +7 -7
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +3 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/executable_tool_factory.js +16 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.d.ts +2 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/graphql_request_executor.js +4 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +3 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +4 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +47 -14
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/README.md +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/ai/conversation/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.d.ts +113 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.d.ts +112 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +30 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/custom/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/function/v1.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.d.ts +59 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +12 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.d.ts +59 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +25 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.d.ts +508 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +112 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.d.ts +2 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/index.js +18 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.d.ts +42 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.d.ts +28 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +12 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.d.ts +33 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.d.ts +32 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +33 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/backend-output-schemas/package.json +27 -0
- package/node_modules/@aws-amplify/ai-constructs/package.json +9 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +0 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +4 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +20 -9
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js +8 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +53 -5
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js +105 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js +25 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver-fn.template.js +125 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js +25 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-streaming-mutation-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver-fn.template.js +14 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +8 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js +3 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +19 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +10 -10
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-directives/package.json +2 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +10 -10
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +8 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +6 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -4
- package/node_modules/graphql-transformer-common/API.md +3 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts +1 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +20 -1
- package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +3 -2
- package/package.json +21 -21
- package/src/amplify-graphql-api.ts +12 -12
- package/src/internal/metadata.ts +40 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
import * as ddb from '@aws-appsync/utils/dynamodb';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Sends a request to the attached data source
|
6
|
+
* @param {import('@aws-appsync/utils').Context} ctx the context
|
7
|
+
* @returns {*} the request
|
8
|
+
*/
|
9
|
+
export function request(ctx) {
|
10
|
+
if (!ctx.args.input.stopReason) {
|
11
|
+
runtime.earlyReturn(ctx.prev.result);
|
12
|
+
}
|
13
|
+
const { id, createdAt, updatedAt } = ctx.stash.defaultValues;
|
14
|
+
const { events } = ctx.prev.result;
|
15
|
+
|
16
|
+
const content = reduceChunks(events);
|
17
|
+
const assistantMessage = {
|
18
|
+
__typename: 'ConversationMessageCustomChat',
|
19
|
+
role: 'assistant',
|
20
|
+
createdAt,
|
21
|
+
updatedAt,
|
22
|
+
conversationId: ctx.args.input.conversationId,
|
23
|
+
associatedUserMessageId: ctx.args.input.associatedUserMessageId,
|
24
|
+
owner: ctx.args.owner,
|
25
|
+
content
|
26
|
+
}
|
27
|
+
// TODO: check if `stopReason` really means end of turn.
|
28
|
+
// `put` if it does
|
29
|
+
// `update` if it doesn't
|
30
|
+
return ddb.put({ key: { id }, item: assistantMessage })
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Returns the resolver result
|
36
|
+
* @param {import('@aws-appsync/utils').Context} ctx the context
|
37
|
+
* @returns {*} the result
|
38
|
+
*/
|
39
|
+
export function response(ctx) {
|
40
|
+
// this makes us return a message to the client. Maybe that's ok if / when we're streaming the text back as true
|
41
|
+
// chunk representations (with index, etc).
|
42
|
+
if (ctx.args.input.stopReason) {
|
43
|
+
const { createdAt } = ctx.stash.defaultValues;
|
44
|
+
const { conversationId } = ctx.result;
|
45
|
+
const { owner } = ctx.args;
|
46
|
+
return {
|
47
|
+
// differentiating with `<id>#response` for now. But this is no bueno.
|
48
|
+
// either the sentinel value needs to be included in the last chunk with content
|
49
|
+
// --- or ---
|
50
|
+
// we need to represent it in the client message type
|
51
|
+
// --- or ---
|
52
|
+
// we could potentially just throw an error here, but that's bad.
|
53
|
+
__typename: 'ConversationMessageStreamPart',
|
54
|
+
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
55
|
+
createdAt,
|
56
|
+
owner,
|
57
|
+
conversationId,
|
58
|
+
...ctx.args.input,
|
59
|
+
};
|
60
|
+
}
|
61
|
+
return ctx.prev.result;
|
62
|
+
}
|
63
|
+
|
64
|
+
function reduceChunks(events) {
|
65
|
+
// we're limited by the AppSync JS runtime as to what we can do here.
|
66
|
+
// so the code is uhh... a little creative.
|
67
|
+
function sortEvents(a, b) {
|
68
|
+
if (a.contentBlockIndex !== b.contentBlockIndex) {
|
69
|
+
return a.contentBlockIndex - b.contentBlockIndex;
|
70
|
+
}
|
71
|
+
return a.contentBlockDeltaIndex - b.contentBlockDeltaIndex;
|
72
|
+
}
|
73
|
+
|
74
|
+
// arrow functions and inline `function` declarations are not supported for sort.
|
75
|
+
events.sort(sortEvents);
|
76
|
+
|
77
|
+
// Group events by contentBlockIndex
|
78
|
+
const groupedEvents = events.reduce(function(acc, event) {
|
79
|
+
if (!acc[event.contentBlockIndex]) {
|
80
|
+
acc[event.contentBlockIndex] = [];
|
81
|
+
}
|
82
|
+
|
83
|
+
if (event.contentBlockText) {
|
84
|
+
acc[event.contentBlockIndex].push(event.contentBlockText);
|
85
|
+
}
|
86
|
+
|
87
|
+
if (event.contentBlockToolUse) {
|
88
|
+
acc[event.contentBlockIndex].push(event.contentBlockToolUse);
|
89
|
+
}
|
90
|
+
return acc;
|
91
|
+
}, {});
|
92
|
+
|
93
|
+
// Concatenate text for each content block
|
94
|
+
const content = Object.keys(groupedEvents).map((index) => {
|
95
|
+
const contentBlock = groupedEvents[index];
|
96
|
+
// toolUse blocks are sent as a single event.
|
97
|
+
if (contentBlock.length === 1 && contentBlock[0].toolUse) {
|
98
|
+
return { toolUse: contentBlock[0].toolUse };
|
99
|
+
}
|
100
|
+
// text blocks are chunked so we join them.
|
101
|
+
return { text: contentBlock.join('') };
|
102
|
+
});
|
103
|
+
|
104
|
+
return content;
|
105
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
+
export declare const assistantStreamingMutationReduceChunksResolver: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
+
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AASzF,eAAO,MAAM,8CAA8C,WAAY,kCAAkC,KAAG,uBAY3G,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.assistantStreamingMutationReduceChunksResolver = void 0;
|
7
|
+
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
9
|
+
const path_1 = __importDefault(require("path"));
|
10
|
+
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
+
const assistantStreamingMutationReduceChunksResolver = (config) => {
|
12
|
+
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'assistant-streaming-mutation-reduce-chunks-resolver-fn.template.js'), 'utf8');
|
13
|
+
const fieldName = (0, graphql_transformer_common_1.toUpper)(config.field.name.value);
|
14
|
+
const substitutions = {
|
15
|
+
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${fieldName}`,
|
16
|
+
};
|
17
|
+
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
+
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
+
resolver = replaced;
|
20
|
+
});
|
21
|
+
const templateName = `Mutation.${config.field.name.value}.assistant-response-stream-reduce-chunks.js`;
|
22
|
+
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
+
};
|
24
|
+
exports.assistantStreamingMutationReduceChunksResolver = assistantStreamingMutationReduceChunksResolver;
|
25
|
+
//# sourceMappingURL=assistant-streaming-mutation-reduce-chunks-resolver.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"assistant-streaming-mutation-reduce-chunks-resolver.js","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-reduce-chunks-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAQ9C,MAAM,8CAA8C,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACpI,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oEAAoE,CAAC,EAAE,MAAM,CAAC,CAAC;IACnI,MAAM,SAAS,GAAG,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,SAAS,EAAE;KAClE,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,6CAA6C,CAAC;IACtG,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAZW,QAAA,8CAA8C,kDAYzD"}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { util } from '@aws-appsync/utils';
|
2
|
+
import * as ddb from '@aws-appsync/utils/dynamodb';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Sends a request to the attached data source
|
6
|
+
* @param {import('@aws-appsync/utils').Context} ctx the context
|
7
|
+
* @returns {*} the request
|
8
|
+
*/
|
9
|
+
export function request(ctx) {
|
10
|
+
const {
|
11
|
+
// required
|
12
|
+
conversationId,
|
13
|
+
associatedUserMessageId,
|
14
|
+
contentBlockIndex,
|
15
|
+
// text chunk
|
16
|
+
contentBlockText,
|
17
|
+
contentBlockDeltaIndex,
|
18
|
+
// tool use
|
19
|
+
contentBlockToolUse,
|
20
|
+
// block complete
|
21
|
+
contentBlockDoneAtIndex,
|
22
|
+
// turn complete
|
23
|
+
stopReason,
|
24
|
+
} = ctx.args.input;
|
25
|
+
|
26
|
+
const { owner } = ctx.args;
|
27
|
+
const streamId = `${associatedUserMessageId}#stream`;
|
28
|
+
|
29
|
+
if (stopReason) {
|
30
|
+
// should we be writing the turn complete chunk here?
|
31
|
+
// probably not. It's just the marker for us to reconcile the chunks.
|
32
|
+
return ddb.get({ key: { id: streamId } });
|
33
|
+
}
|
34
|
+
|
35
|
+
// not using this yet. we'll need to enable ttl on the table first.
|
36
|
+
const now = util.time.nowEpochSeconds()
|
37
|
+
const ttl = now + 60 * 60 * 24; // 1 day
|
38
|
+
|
39
|
+
const event = {
|
40
|
+
contentBlockIndex,
|
41
|
+
contentBlockDeltaIndex,
|
42
|
+
contentBlockText,
|
43
|
+
contentBlockToolUse,
|
44
|
+
contentBlockDoneAtIndex,
|
45
|
+
};
|
46
|
+
|
47
|
+
// AppSync JS runtime doesn't support Object.fromEntries
|
48
|
+
const chunk = Object.keys(event)
|
49
|
+
.filter((k) => event[k] != null)
|
50
|
+
.reduce((a, k) => ({ ...a, [k]: event[k] }), {});
|
51
|
+
|
52
|
+
// TODO: Use expression names for all attributes.
|
53
|
+
// reference: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html
|
54
|
+
const setExpression = 'SET events = list_append(if_not_exists(events, :empty_list), :events), conversationId = :conversationId, #owner = :owner'
|
55
|
+
const id = streamId
|
56
|
+
return {
|
57
|
+
operation: 'UpdateItem',
|
58
|
+
key: util.dynamodb.toMapValues({ id }),
|
59
|
+
update: {
|
60
|
+
expression: setExpression,
|
61
|
+
expressionValues: util.dynamodb.toMapValues({
|
62
|
+
':events': [chunk],
|
63
|
+
':empty_list': [],
|
64
|
+
':conversationId': conversationId,
|
65
|
+
':owner': owner,
|
66
|
+
}),
|
67
|
+
expressionNames: {
|
68
|
+
'#owner': 'owner',
|
69
|
+
},
|
70
|
+
},
|
71
|
+
};
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Returns the resolver result
|
76
|
+
* @param {import('@aws-appsync/utils').Context} ctx the context
|
77
|
+
* @returns {*} the result
|
78
|
+
*/
|
79
|
+
export function response(ctx) {
|
80
|
+
console.log('>>> response function ctx <<<', ctx);
|
81
|
+
if (ctx.error) {
|
82
|
+
util.error(ctx.error.message, ctx.error.type);
|
83
|
+
}
|
84
|
+
|
85
|
+
const { conversationId } = ctx.result;
|
86
|
+
const { owner } = ctx.args;
|
87
|
+
|
88
|
+
if (ctx.args.input.contentBlockToolUse && ctx.args.input.contentBlockToolUse.toolUse) {
|
89
|
+
console.log('>>> contentBlockToolUse <<<', ctx.args.input.contentBlockToolUse);
|
90
|
+
|
91
|
+
return {
|
92
|
+
__typename: 'ConversationMessageStreamPart',
|
93
|
+
...ctx.args.input,
|
94
|
+
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
95
|
+
owner,
|
96
|
+
conversationId,
|
97
|
+
contentBlockToolUse: ctx.args.input.contentBlockToolUse.toolUse,
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
if (ctx.args.input.contentBlockText) {
|
102
|
+
console.log('>>> contentBlockText <<<', ctx.args.input.contentBlockText);
|
103
|
+
return {
|
104
|
+
__typename: 'ConversationMessageStreamPart',
|
105
|
+
...ctx.args.input,
|
106
|
+
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
107
|
+
owner,
|
108
|
+
conversationId,
|
109
|
+
};
|
110
|
+
}
|
111
|
+
|
112
|
+
if (ctx.args.input.contentBlockDoneAtIndex) {
|
113
|
+
console.log('>>> contentBlockDoneAtIndex <<<', ctx.args.input.contentBlockDoneAtIndex);
|
114
|
+
// Do we actually need this event? It's forcing us to return a value to the client here, which is awkward... maybe.
|
115
|
+
return {
|
116
|
+
...ctx.args.input,
|
117
|
+
id: `${ctx.args.input.associatedUserMessageId}#stream`,
|
118
|
+
owner,
|
119
|
+
conversationId,
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
console.log('>>> stopReason <<<', ctx.args.input.stopReason);
|
124
|
+
return ctx.result;
|
125
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-transformer';
|
3
|
+
export declare const assistantStreamingMutationResolver: (config: ConversationDirectiveConfiguration) => MappingTemplateProvider;
|
4
|
+
//# sourceMappingURL=assistant-streaming-mutation-resolver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"assistant-streaming-mutation-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AASzF,eAAO,MAAM,kCAAkC,WAAY,kCAAkC,KAAG,uBAY/F,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.assistantStreamingMutationResolver = void 0;
|
7
|
+
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
9
|
+
const path_1 = __importDefault(require("path"));
|
10
|
+
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
11
|
+
const assistantStreamingMutationResolver = (config) => {
|
12
|
+
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'assistant-streaming-mutation-resolver-fn.template.js'), 'utf8');
|
13
|
+
const fieldName = (0, graphql_transformer_common_1.toUpper)(config.field.name.value);
|
14
|
+
const substitutions = {
|
15
|
+
CONVERSATION_MESSAGE_TYPE_NAME: `ConversationMessage${fieldName}`,
|
16
|
+
};
|
17
|
+
Object.entries(substitutions).forEach(([key, value]) => {
|
18
|
+
const replaced = resolver.replace(new RegExp(`\\[\\[${key}\\]\\]`, 'g'), value);
|
19
|
+
resolver = replaced;
|
20
|
+
});
|
21
|
+
const templateName = `Mutation.${config.field.name.value}.assistant-response-stream.js`;
|
22
|
+
return graphql_transformer_core_1.MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
|
23
|
+
};
|
24
|
+
exports.assistantStreamingMutationResolver = assistantStreamingMutationResolver;
|
25
|
+
//# sourceMappingURL=assistant-streaming-mutation-resolver.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"assistant-streaming-mutation-resolver.js","sourceRoot":"","sources":["../../src/resolvers/assistant-streaming-mutation-resolver.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AAExB,2EAAqD;AAQ9C,MAAM,kCAAkC,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACxH,IAAI,QAAQ,GAAG,YAAE,CAAC,YAAY,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sDAAsD,CAAC,EAAE,MAAM,CAAC,CAAC;IACrH,MAAM,SAAS,GAAG,IAAA,oCAAO,EAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG;QACpB,8BAA8B,EAAE,sBAAsB,SAAS,EAAE;KAClE,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAChF,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,YAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,+BAA+B,CAAC;IACxF,OAAO,0CAAe,CAAC,+BAA+B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACjF,CAAC,CAAC;AAZW,QAAA,kCAAkC,sCAY7C"}
|
@@ -7,11 +7,18 @@ export function request(ctx) {
|
|
7
7
|
[[TOOL_DEFINITIONS_LINE]]
|
8
8
|
const selectionSet = '[[SELECTION_SET]]';
|
9
9
|
|
10
|
-
const
|
10
|
+
const singleShotResponseMutation = {
|
11
11
|
name: '[[RESPONSE_MUTATION_NAME]]',
|
12
12
|
inputTypeName: '[[RESPONSE_MUTATION_INPUT_TYPE_NAME]]',
|
13
13
|
selectionSet,
|
14
14
|
};
|
15
|
+
|
16
|
+
const streamingResponseMutation = {
|
17
|
+
name: '[[STREAMING_RESPONSE_MUTATION_NAME]]',
|
18
|
+
inputTypeName: '[[STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME]]',
|
19
|
+
selectionSet,
|
20
|
+
};
|
21
|
+
|
15
22
|
const currentMessageId = ctx.stash.defaultValues.id;
|
16
23
|
[[MODEL_CONFIGURATION_LINE]]
|
17
24
|
|
@@ -28,6 +35,11 @@ export function request(ctx) {
|
|
28
35
|
listQueryLimit: [[LIST_QUERY_LIMIT]],
|
29
36
|
};
|
30
37
|
|
38
|
+
const disableStreaming = ctx.env['[[DISABLE_STREAMING_ENV_VAR]]'] === 'true';
|
39
|
+
const responseMutation = !!disableStreaming
|
40
|
+
? singleShotResponseMutation
|
41
|
+
: streamingResponseMutation;
|
42
|
+
|
31
43
|
const authHeader = request.headers['authorization'];
|
32
44
|
const payload = {
|
33
45
|
conversationId: args.conversationId,
|
@@ -38,6 +50,7 @@ export function request(ctx) {
|
|
38
50
|
request: { headers: { authorization: authHeader } },
|
39
51
|
messageHistoryQuery,
|
40
52
|
toolsConfiguration,
|
53
|
+
streamResponse: !disableStreaming,
|
41
54
|
};
|
42
55
|
|
43
56
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoke-lambda-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAElH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAczF,eAAO,MAAM,2BAA2B,WAAY,kCAAkC,KAAG,
|
1
|
+
{"version":3,"file":"invoke-lambda-resolver.d.ts","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAElH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAczF,eAAO,MAAM,2BAA2B,WAAY,kCAAkC,KAAG,uBA8CxF,CAAC"}
|
@@ -12,7 +12,7 @@ const graphql_transformer_common_1 = require("graphql-transformer-common");
|
|
12
12
|
const pluralize_1 = __importDefault(require("pluralize"));
|
13
13
|
const invokeLambdaMappingTemplate = (config) => {
|
14
14
|
const { TOOL_DEFINITIONS_LINE, TOOLS_CONFIGURATION_LINE } = generateToolLines(config);
|
15
|
-
const SELECTION_SET =
|
15
|
+
const SELECTION_SET = streamingSelectionSet;
|
16
16
|
const MODEL_CONFIGURATION_LINE = generateModelConfigurationLine(config);
|
17
17
|
const RESPONSE_MUTATION_NAME = config.responseMutationName;
|
18
18
|
const RESPONSE_MUTATION_INPUT_TYPE_NAME = config.responseMutationInputTypeName;
|
@@ -22,6 +22,9 @@ const invokeLambdaMappingTemplate = (config) => {
|
|
22
22
|
const LIST_QUERY_NAME = `listConversationMessage${(0, graphql_transformer_common_1.toUpper)((0, pluralize_1.default)(config.field.name.value))}`;
|
23
23
|
const LIST_QUERY_INPUT_TYPE_NAME = `ModelConversationMessage${(0, graphql_transformer_common_1.toUpper)(config.field.name.value)}FilterInput`;
|
24
24
|
const LIST_QUERY_LIMIT = 'undefined';
|
25
|
+
const STREAMING_RESPONSE_MUTATION_NAME = config.messageModel.assistantStreamingMutationField.name.value;
|
26
|
+
const STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME = config.messageModel.assistantStreamingMutationInput.name.value;
|
27
|
+
const DISABLE_STREAMING_ENV_VAR = `${config.field.name.value}_DISABLE_STREAMING`;
|
25
28
|
const substitutions = {
|
26
29
|
TOOL_DEFINITIONS_LINE,
|
27
30
|
TOOLS_CONFIGURATION_LINE,
|
@@ -35,6 +38,9 @@ const invokeLambdaMappingTemplate = (config) => {
|
|
35
38
|
LIST_QUERY_NAME,
|
36
39
|
LIST_QUERY_INPUT_TYPE_NAME,
|
37
40
|
LIST_QUERY_LIMIT,
|
41
|
+
STREAMING_RESPONSE_MUTATION_NAME,
|
42
|
+
STREAMING_RESPONSE_MUTATION_INPUT_TYPE_NAME,
|
43
|
+
DISABLE_STREAMING_ENV_VAR,
|
38
44
|
};
|
39
45
|
let resolver = fs_1.default.readFileSync(path_1.default.join(__dirname, 'invoke-lambda-resolver-fn.template.js'), 'utf8');
|
40
46
|
Object.entries(substitutions).forEach(([key, value]) => {
|
@@ -74,4 +80,5 @@ const generateModelInferenceConfigurationLine = (config) => {
|
|
74
80
|
: '';
|
75
81
|
};
|
76
82
|
const selectionSet = `id conversationId content { image { format source { bytes }} text toolUse { toolUseId name input } toolResult { status toolUseId content { json text image { format source { bytes }} document { format name source { bytes }} }}} role owner createdAt updatedAt`;
|
83
|
+
const streamingSelectionSet = `associatedUserMessageId contentBlockDeltaIndex contentBlockDoneAtIndex contentBlockIndex contentBlockText contentBlockToolUse { toolUseId name input } conversationId id stopReason`;
|
77
84
|
//# sourceMappingURL=invoke-lambda-resolver.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoke-lambda-resolver.js","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":";;;;;;AACA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AACxB,0DAA+B;AAC/B,2EAAqD;AACrD,0DAAkC;AAS3B,MAAM,2BAA2B,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACjH,MAAM,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACtF,MAAM,aAAa,GAAG,
|
1
|
+
{"version":3,"file":"invoke-lambda-resolver.js","sourceRoot":"","sources":["../../src/resolvers/invoke-lambda-resolver.ts"],"names":[],"mappings":";;;;;;AACA,oFAAwE;AAExE,4CAAoB;AACpB,gDAAwB;AACxB,0DAA+B;AAC/B,2EAAqD;AACrD,0DAAkC;AAS3B,MAAM,2BAA2B,GAAG,CAAC,MAA0C,EAA2B,EAAE;IACjH,MAAM,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACtF,MAAM,aAAa,GAAG,qBAAqB,CAAC;IAC5C,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;IACxE,MAAM,sBAAsB,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAC3D,MAAM,iCAAiC,GAAG,MAAM,CA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EAAE,GAAG,MAAM,CAAC;IAC1C,OAAO,sBAAsB,IAAI,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,GAAG,CAAC;QAC7E,CAAC,CAAC,IAAA,mBAAM,EAAA,2BAA2B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG;QACnF,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AAKF,MAAM,YAAY,GAAG,mQAAmQ,CAAC;AACzR,MAAM,qBAAqB,GAAG,qLAAqL,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-prepare-handler.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAQzF,qBAAa,0BAA0B;IACrC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,YAAY,CAA0B;gBAU5C,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,uBAAuB;IAmBvC,OAAO,CAAC,GAAG,EAAE,qCAAqC,EAAE,UAAU,EAAE,kCAAkC,EAAE,GAAG,IAAI;IAkB3G,OAAO,CAAC,4BAA4B;CAqErC"}
|
@@ -16,11 +16,12 @@ class ConversationPrepareHandler {
|
|
16
16
|
}
|
17
17
|
prepareResourcesForDirective(directive, ctx) {
|
18
18
|
const { conversationAuthDirective, conversationModelDirective, conversationHasManyMessagesDirective, conversationMessagesField, conversationModel, } = directive.conversationModel;
|
19
|
-
const { messageAuthDirective, messageModelDirective, messageBelongsToConversationDirective, messageConversationField, messageModel, messageSubscription, assistantMutationField, assistantMutationInput, } = directive.messageModel;
|
19
|
+
const { messageAuthDirective, messageModelDirective, messageBelongsToConversationDirective, messageConversationField, messageModel, messageSubscription, assistantMutationField, assistantMutationInput, assistantStreamingMutationField, assistantStreamingMutationInput, } = directive.messageModel;
|
20
20
|
const sessionModelName = conversationModel.name.value;
|
21
21
|
const messageModelName = messageModel.name.value;
|
22
22
|
ctx.output.addInput(assistantMutationInput);
|
23
|
-
ctx.output.
|
23
|
+
ctx.output.addInput(assistantStreamingMutationInput);
|
24
|
+
ctx.output.addMutationFields([assistantMutationField, assistantStreamingMutationField]);
|
24
25
|
ctx.output.addSubscriptionFields([messageSubscription]);
|
25
26
|
ctx.output.addObject(conversationModel);
|
26
27
|
ctx.output.addObject(messageModel);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.ts"],"names":[],"mappings":";;;AAIA,oFAAyH;
|
1
|
+
{"version":3,"file":"conversation-prepare-handler.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-prepare-handler.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;CACF;AA3HD,gEA2HC"}
|
@@ -14,6 +14,7 @@ export declare class ConversationResolverGenerator {
|
|
14
14
|
private createConversationPipelineResolver;
|
15
15
|
private addPipelineResolverFunctions;
|
16
16
|
private createAssistantResponseResolver;
|
17
|
+
private createAssistantStreamingResponseResolver;
|
17
18
|
private createAssistantResponseSubscriptionResolver;
|
18
19
|
private addLambdaDataSource;
|
19
20
|
private addInitSlotToListMessagesPipeline;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAClH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAIzF,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.d.ts","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAClH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAIzF,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AA0BnC,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;gBAAhB,eAAe,CAAC,sDAA2B;IAExE,iBAAiB,CAAC,UAAU,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,0BAA0B,GAAG,IAAI;IAQ1G,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,6BAA6B;IA0DrC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,+BAA+B;IAmBvC,OAAO,CAAC,+BAA+B;IAgCvC,OAAO,CAAC,kCAAkC;IA6C1C,OAAO,CAAC,4BAA4B;IAkCpC,OAAO,CAAC,+BAA+B;IAsCvC,OAAO,CAAC,wCAAwC;IAmDhD,OAAO,CAAC,2CAA2C;IAqCnD,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,iCAAiC;IAazC,OAAO,CAAC,sBAAsB;IAsB9B,OAAO,CAAC,uBAAuB;CAgChC"}
|
@@ -43,6 +43,8 @@ const assistant_messages_subscription_resolver_1 = require("../resolvers/assista
|
|
43
43
|
const graphql_index_transformer_1 = require("@aws-amplify/graphql-index-transformer");
|
44
44
|
const pluralize_1 = __importDefault(require("pluralize"));
|
45
45
|
const list_messages_init_resolver_1 = require("../resolvers/list-messages-init-resolver");
|
46
|
+
const assistant_streaming_mutation_resolver_1 = require("../resolvers/assistant-streaming-mutation-resolver");
|
47
|
+
const assistant_streaming_mutation_reduce_chunks_resolver_1 = require("../resolvers/assistant-streaming-mutation-reduce-chunks-resolver");
|
46
48
|
class ConversationResolverGenerator {
|
47
49
|
constructor(functionNameMap) {
|
48
50
|
this.functionNameMap = functionNameMap;
|
@@ -77,6 +79,7 @@ class ConversationResolverGenerator {
|
|
77
79
|
const writeMessageToTableFunction = (0, write_message_to_table_resolver_1.writeMessageToTableMappingTemplate)(directive);
|
78
80
|
this.createConversationPipelineResolver(ctx, parentName, fieldName, capitalizedFieldName, functionDataSource, invokeLambdaFunction, initResolverFunction, authResolverFunction, verifySessionOwnerSendMessageResolverFunction, writeMessageToTableFunction);
|
79
81
|
this.createAssistantResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
82
|
+
this.createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerAssistantResponseResolverFunction);
|
80
83
|
this.createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName);
|
81
84
|
}
|
82
85
|
createFunctionStack(ctx, capitalizedFieldName) {
|
@@ -149,6 +152,22 @@ class ConversationResolverGenerator {
|
|
149
152
|
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
150
153
|
ctx.resolvers.addResolver('Mutation', directive.responseMutationName, resolver);
|
151
154
|
}
|
155
|
+
createAssistantStreamingResponseResolver(ctx, directive, capitalizedFieldName, initResolverFunction, authResolverFunction, verifySessionOwnerResolverFunction) {
|
156
|
+
const assistantResponseResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Mutation', directive.messageModel.assistantStreamingMutationField.name.value);
|
157
|
+
const assistantResponseResolverFunction = (0, assistant_streaming_mutation_resolver_1.assistantStreamingMutationResolver)(directive);
|
158
|
+
const conversationMessageDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, `ConversationMessage${capitalizedFieldName}`);
|
159
|
+
const conversationMessageDataSource = ctx.api.host.getDataSource(conversationMessageDataSourceName);
|
160
|
+
const resolver = new graphql_transformer_core_1.TransformerResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, assistantResponseResolverResourceId, { codeMappingTemplate: assistantResponseResolverFunction }, ['init', 'auth', 'verifySessionOwner'], ['reduceChunks'], conversationMessageDataSource, graphql_transformer_core_1.APPSYNC_JS_RUNTIME);
|
161
|
+
resolver.addJsFunctionToSlot('init', initResolverFunction);
|
162
|
+
resolver.addJsFunctionToSlot('auth', authResolverFunction);
|
163
|
+
const sessionModelName = `Conversation${capitalizedFieldName}`;
|
164
|
+
const sessionModelDDBDataSourceName = (0, graphql_transformer_core_2.getModelDataSourceNameForTypeName)(ctx, sessionModelName);
|
165
|
+
const conversationSessionDDBDataSource = ctx.api.host.getDataSource(sessionModelDDBDataSourceName);
|
166
|
+
resolver.addJsFunctionToSlot('verifySessionOwner', verifySessionOwnerResolverFunction, conversationSessionDDBDataSource);
|
167
|
+
const reduceChunksFunction = (0, assistant_streaming_mutation_reduce_chunks_resolver_1.assistantStreamingMutationReduceChunksResolver)(directive);
|
168
|
+
resolver.addJsFunctionToSlot('reduceChunks', reduceChunksFunction, conversationMessageDataSource);
|
169
|
+
ctx.resolvers.addResolver('Mutation', directive.messageModel.assistantStreamingMutationField.name.value, resolver);
|
170
|
+
}
|
152
171
|
createAssistantResponseSubscriptionResolver(ctx, directive, capitalizedFieldName) {
|
153
172
|
const onAssistantResponseSubscriptionFieldName = `onCreateAssistantResponse${capitalizedFieldName}`;
|
154
173
|
const onAssistantResponseSubscriptionResolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID('Subscription', onAssistantResponseSubscriptionFieldName);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0CAA8C;AAC9C,oFAAgG;AAChG,2EAAkH;AAClH,iDAAmC;AACnC,8DAA0D;AAE1D,oFAAoG;AACpG,8DAAiE;AACjE,8DAAiE;AACjE,8FAGoD;AACpD,kGAAkG;AAClG,gFAAkF;AAClF,0FAAqF;AACrF,oHAAuH;AACvH,sFAAiF;AACjF,0DAAkC;AAClC,0FAA0F;
|
1
|
+
{"version":3,"file":"conversation-resolver-generator.js","sourceRoot":"","sources":["../../src/transformer-steps/conversation-resolver-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0CAA8C;AAC9C,oFAAgG;AAChG,2EAAkH;AAClH,iDAAmC;AACnC,8DAA0D;AAE1D,oFAAoG;AACpG,8DAAiE;AACjE,8DAAiE;AACjE,8FAGoD;AACpD,kGAAkG;AAClG,gFAAkF;AAClF,0FAAqF;AACrF,oHAAuH;AACvH,sFAAiF;AACjF,0DAAkC;AAClC,0FAA0F;AAC1F,8GAAwG;AACxG,0IAAkI;AAQlI,MAAa,6BAA6B;IACxC,YAA6B,eAA2C;QAA3C,oBAAe,GAAf,eAAe,CAA4B;IAAG,CAAC;IAE5E,iBAAiB,CAAC,UAAgD,EAAE,GAA+B;QACjG,KA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AQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AA3bD,sEA2bC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-conversation-transformer",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0-ai-streaming.0",
|
4
4
|
"description": "Amplify GraphQL @conversation transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -24,21 +24,21 @@
|
|
24
24
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-amplify/ai-constructs": "
|
28
|
-
"@aws-amplify/graphql-directives": "2.4.0",
|
29
|
-
"@aws-amplify/graphql-index-transformer": "3.0.
|
30
|
-
"@aws-amplify/graphql-model-transformer": "3.0.
|
31
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.
|
32
|
-
"@aws-amplify/graphql-transformer-core": "3.2.
|
27
|
+
"@aws-amplify/ai-constructs": "0.6.1",
|
28
|
+
"@aws-amplify/graphql-directives": "2.4.1-ai-streaming.0",
|
29
|
+
"@aws-amplify/graphql-index-transformer": "3.0.7-ai-streaming.0",
|
30
|
+
"@aws-amplify/graphql-model-transformer": "3.0.7-ai-streaming.0",
|
31
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.7-ai-streaming.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "3.2.2-ai-streaming.0",
|
33
33
|
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
34
34
|
"graphql": "^15.5.0",
|
35
35
|
"graphql-mapping-template": "5.0.1",
|
36
|
-
"graphql-transformer-common": "5.0.
|
36
|
+
"graphql-transformer-common": "5.0.2-ai-streaming.0",
|
37
37
|
"immer": "^9.0.12",
|
38
38
|
"semver": "^7.6.3"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
41
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.6-ai-streaming.0",
|
42
42
|
"esbuild": "^0.24.0"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
@@ -81,5 +81,5 @@
|
|
81
81
|
"/__tests__/"
|
82
82
|
]
|
83
83
|
},
|
84
|
-
"gitHead": "
|
84
|
+
"gitHead": "8701d087e41015a83c74bf9fd0723f16ac23313f"
|
85
85
|
}
|
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [3.1.2-ai-streaming.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.1...@aws-amplify/graphql-default-value-transformer@3.1.2-ai-streaming.0) (2024-10-22)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
|
+
|
6
10
|
## [3.1.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.0...@aws-amplify/graphql-default-value-transformer@3.1.1) (2024-10-17)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|