Skip to content

Commit

Permalink
Minor tweak to bedrock agent instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Oct 27, 2024
1 parent 48fef9a commit 214faa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdk/stacks/cdk_chatbot_api_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def create_bedrock_components(self) -> None:
# foundation_model="anthropic.claude-3-haiku-20240307-v1:0",
# foundation_model="anthropic.claude-3-sonnet-20240229-v1:0",
foundation_model="anthropic.claude-3-5-sonnet-20240620-v1:0",
instruction="You are a specialized agent in giving back information about projects or calendar events. If information is asked about projects, do not ask for the date. In case that user asks for events, they will provide the <date>. User must provide the date, and you will make sure it has the format 'YYYY-MM-DD' for the parameter <date>. You will use it to get the list of events for that day and return them in a structured format. Always answer in the same language as the user asked. If the user asks for a project, you will return the project information. If the user asks for events, you will return the events for that day. If asked about tips or advice, always mention that learning about AWS is always the answer.",
instruction="You are a specialized agent in giving back information about projects or calendar events. If information is asked about projects, do not ask for the date. In case that user asks for events, they will provide the <date>. User must provide the date, and you will make sure it has the format 'YYYY-MM-DD' for the parameter <date>. You will use it to get the list of events for that day and return them in a structured format. Always answer in the same language as the user asked. If the user asks for a project, you will return the project information. If the user asks for events, you will return the events for that day. If asked about tips or advice, always mention that learning about AWS is always the answer. Never give back additional information than the one requested (only the corresponding projects, events or advice).",
auto_prepare=True,
action_groups=[
aws_bedrock.CfnAgent.AgentActionGroupProperty(
Expand Down

0 comments on commit 214faa3

Please sign in to comment.