Skip to content

Commit 0115a02

Browse files
authored
Decouple ai constructs from platform core (#2812)
1 parent 0ff988d commit 0115a02

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.changeset/witty-towns-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/ai-constructs': patch
3+
---
4+
5+
Remove dependency on platform-core

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ai-constructs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"license": "Apache-2.0",
3030
"dependencies": {
3131
"@aws-amplify/backend-output-schemas": "^1.6.0",
32-
"@aws-amplify/platform-core": "^1.9.0",
3332
"@aws-amplify/plugin-types": "^1.10.1",
3433
"@aws-sdk/client-bedrock-runtime": "3.622.0",
3534
"@smithy/types": "^4.1.0",

packages/ai-constructs/src/conversation/conversation_handler_construct.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
} from 'aws-cdk-lib/aws-logs';
2424
import { Construct } from 'constructs';
2525
import path from 'path';
26-
import { TagName } from '@aws-amplify/platform-core';
2726
import {
2827
AIConversationOutput,
2928
aiConversationOutputKey,
@@ -102,7 +101,9 @@ export class ConversationHandlerFunction
102101
throw new Error('Entry must be absolute path');
103102
}
104103

105-
Tags.of(this).add(TagName.FRIENDLY_NAME, id);
104+
// Intentionally not using import from 'platform-core'
105+
// To not drag excessive amount of dependencies into construct layer.
106+
Tags.of(this).add('amplify:friendly-name', id);
106107

107108
const commonHandlerProperties = {
108109
runtime: LambdaRuntime.NODEJS_20_X,

packages/ai-constructs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
},
1212
"references": [
1313
{ "path": "../backend-output-schemas" },
14-
{ "path": "../platform-core" },
1514
{ "path": "../plugin-types" },
1615
{ "path": "../backend-output-storage" }
1716
]

0 commit comments

Comments
 (0)