最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

aws cdk - How to provide a custom template for Knowledge Base response generation Orchestration strategy for a Bedrock agent usi

programmeradmin5浏览0评论

I am trying to deploy a Bedrock agent with a knowledgebase using python cdk. I want to override default and pass a custom template for Knowledge Base response generation Orchestration strategy.

How can i do it using python cdk ? I checked the documentation but didn't find any construct for this. Below is my code to deploy the agent which is working fine.

        support_agent = bedrock.CfnAgent(self, "HorizonIQSupportAgent",
        agent_name="support-agent",
        agent_resource_role_arn=agent_role.attr_arn,
        auto_prepare=True,
        description="support-agent",
        foundation_model=foundation_model_name,
        idle_session_ttl_in_seconds=600,
        instruction=prompt,
        knowledge_bases=[bedrock.CfnAgent.AgentKnowledgeBaseProperty(
            description=kb_description,
            knowledge_base_id=knowledge_base.attr_knowledge_base_id,
        )]
    )

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论