那我们稍微深入地讲一下这个 action group 或者操作里面都有哪些内容。这个就是主要包括三个关键的要素。第一就是 action group 的描述,这个描述就是说我们用自然语言去帮助这个智能体了解我们这个操作组适用哪些情况,就是告诉这个智能体好,你现在要做这个 group,要做这些事情。然后我们需要去定义这个 API 的架构。...
那我们稍微深入地讲一下这个 action group 或者操作里面都有哪些内容。这个就是主要包括三个关键的要素。第一就是 action group 的描述,这个描述就是说我们用自然语言去帮助这个智能体了解我们这个操作组适用哪些情况,就是告诉这个智能体好,你现在要做这个 group,要做这些事情。然后我们需要去定义这个 API 的架构。...
agent = event['agent'] actionGroup = event['actionGroup'] function = event['function'] parameters = event.get('parameters', []) # 在此执行您的业务逻辑。更多信息, # 请参阅:https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html if actionGroup == 'check-login-status' ...
Contains details of the inline agent's action group. Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: JSON { "ActionGroupExecutor" : ActionGroupExecutor, "ActionGroupName" : String, "ActionGroupState" : String, "ApiSchema" : APISchema, "...
The unique identifier of the action group. #action_group_name ⇒ String The name of the action group. #action_group_state ⇒ String Specifies whether the action group is available for the agent to invoke or not when sending an [InvokeAgent][1] request. #agent_id ⇒ String The...
Description Updates aws_bedrockagent_agent_action_group tests to: TestAccBedrockAgentAgentActionGroup_basic checks default values TestAccBedrockAgentAgentActionGroup_APISchema_s3 checks api_schema.s3 values TestAccBedrockAgentAgentActionGroup_update che
我们可以从上面的代码中看到,我们给Agent赋予了如下的关键属性:会话应持续多久,链接至我们的Amazon Bedrock知识库,FM类型(我们的情况为Claud V2),以及该Agent的指令。 我们接下来按照下面的方式创建我们的工作组: // 添加用于预订的操作组 new bedrock.AgentActionGroup(this, 'AgentActionGroup', { actionGroupName...
Test the action group using the provided test console to ensure proper functionality. After adding all action groups, review the entire agent configuration and deploy the agent. Clean up To avoid unnecessary charges, delete the resources created during testing. Use the following steps to clean...
Create a Lambda function (Python 3.12) for the Bedrock agent's action group. We will call this Lambda functionPortfolioCreator-actions. Copy the python code provided below, or from the filehereinto your Lambda function. importjsondeflambda_handler(event,context):print(event)# Mock data for demo...
Amazon Bedrock Agents automatically creates a prompt template from the user instructions, action group, and knowledge bases. You can use this template as a baseline to further refine the automatically generated prompt template to enhance the user experience. You can also update the user input, orche...