- Newest
- Most votes
- Most comments
Hello.
How about trying setting "ApiSchema"?
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html
AWSTemplateFormatVersion: '2010-09-09'
Description: "CFN stack for creating an agent"
Resources:
ExampleAgentResource:
Type: AWS::Bedrock::Agent
Properties:
AgentName: "Example_Agent"
AgentResourceRoleArn: "arn:aws:iam::992382787256:role/service-role/AmazonBedrockExecutionRoleForAgents_2JVPT4MQ391"
FoundationModel: "anthropic.claude-3-haiku-20240307-v1:0"
Instruction: "You are an IT agent who solves customer's problems"
Description: "Description is here"
IdleSessionTTLInSeconds: 900
ActionGroups:
- ActionGroupName: "it_action"
Description: "Testing latest IT Management action"
ActionGroupExecutor:
Lambda: "arn:aws:lambda:us-east-1:992382787256:function:Test-1"
ApiSchema:
Payload: ....
Hello, It seems like the Function Schema property is not a valid property for the AWS::Bedrock::Agent resource in CloudFormation. The documentation you referenced (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html) confirms this.
AWSTemplateFormatVersion: '2010-09-09' Description: "CFN stack for creating an agent" Resources: ExampleAgentResource: Type: AWS::Bedrock::Agent Properties: AgentName: "Example_Agent" AgentResourceRoleArn: "arn:aws:iam::992382787256:role/service-role/AmazonBedrockExecutionRoleForAgents_2JVPT4MQ391" FoundationModel: "anthropic.claude-3-haiku-20240307-v1:0" Instruction: "You are an IT agent who solves customer's problems" Description: "Description is here" IdleSessionTTLInSeconds: 900 ActionGroups: - ActionGroupName: "it_action" Description: "Testing latest IT Management action" ActionGroupExecutor: Lambda: "arn:aws:lambda:us-east-1:992382787256:function:Test-1"
The ActionGroupExecutor property takes the format Lambda: <arn_of_lambda_function>. This directly specifies the Lambda function as the action executor. The FunctionSchema property might be relevant for future capabilities, but it's not currently supported for defining action group executors.
Let me know if you have any further questions about deploying your Bedrock agent with action groups!
Regards, Manish Batheja
Relevant content
- asked 2 months ago
- asked 5 months ago
- asked 2 months ago
- asked 7 months ago
- AWS OFFICIALUpdated 5 months ago
- How do I raise the priority of agent to agent or agent to queue transferred calls in Amazon Connect?AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago