![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@aws-amplify/ai-constructs
Advanced tools
This package vends L3 CDK Constructs that deploy resources which power AI routes in Amplify apps.
This package vends L3 CDK Constructs that deploy resources which power AI routes in Amplify apps.
Conversation Handler Function L3 CDK Construct provisions resources required to integrate conversation routes (i.e.
defined with a.ai.conversation()
from @aws-amplify/data-schema
) with AI models provided by AWS Bedrock service.
Resources deployed by this construct include:
This construct is used implicitly by @aws-amplify/data-construct
when conversational routes don't specify
handler reference. In this case default implementation provided by Amplify is deployed.
Alternatively, a custom lambda implementation can be provided by explicitly including this construct in backend definition and referencing it in schema.
import { App, Stack } from 'aws-cdk-lib';
import { ConversationHandlerFunction } from '@aws-amplify/ai-constructs/conversation';
const app = new App();
const stack = new Stack(app, 'ConversationHandlerStack');
new ConversationHandlerFunction(stack, {
models: [
{
modelId: 'anthropic.claude-3-haiku-20240307-v1:0',
region: 'us-east-1',
},
],
});
import { App, Stack } from 'aws-cdk-lib';
import { ConversationHandlerFunction } from '@aws-amplify/ai-constructs/conversation';
import path from 'path';
const app = new App();
const stack = new Stack(app, 'ConversationHandlerStack');
new ConversationHandlerFunction(stack, {
entry: path.resolve('./custom_handler.ts'),
models: [
{
modelId: 'anthropic.claude-3-haiku-20240307-v1:0',
region: 'us-east-1',
},
],
});
FAQs
This package vends L3 CDK Constructs that deploy resources which power AI routes in Amplify apps.
The npm package @aws-amplify/ai-constructs receives a total of 3,034 weekly downloads. As such, @aws-amplify/ai-constructs popularity was classified as popular.
We found that @aws-amplify/ai-constructs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.