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,
)]
)