Skip to content

Commit 5993cbd

Browse files
chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.146 to 0.1.150 (#4346)
1 parent e4585a2 commit 5993cbd

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

examples/event_handler_bedrock_agents/cdk/bedrock_agent_stack.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
)
44
from aws_cdk.aws_lambda import Runtime
55
from aws_cdk.aws_lambda_python_alpha import PythonFunction
6-
from cdklabs.generative_ai_cdk_constructs.bedrock import (
7-
Agent,
8-
ApiSchema,
9-
BedrockFoundationModel,
10-
)
6+
from cdklabs.generative_ai_cdk_constructs.bedrock import Agent, AgentActionGroup, ApiSchema, BedrockFoundationModel
117
from constructs import Construct
128

139

@@ -31,10 +27,14 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
3127
foundation_model=BedrockFoundationModel.ANTHROPIC_CLAUDE_INSTANT_V1_2,
3228
instruction="You are a helpful and friendly agent that answers questions about insurance claims.",
3329
)
34-
agent.add_action_group(
30+
31+
action_group = AgentActionGroup(
32+
self,
33+
"ActionGroup",
3534
action_group_name="InsureClaimsSupport",
3635
description="Use these functions for insurance claims support",
3736
action_group_executor=action_group_function,
3837
action_group_state="ENABLED",
3938
api_schema=ApiSchema.from_asset("./lambda/openapi.json"), # (2)!
4039
)
40+
agent.add_action_group(action_group)

poetry.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ aws-cdk-lib = "^2.141.0"
7070
"aws-cdk.aws-apigatewayv2-integrations-alpha" = "^2.38.1-alpha.0"
7171
"aws-cdk.aws-apigatewayv2-authorizers-alpha" = "^2.38.1-alpha.0"
7272
"aws-cdk.aws-lambda-python-alpha" = "^2.141.0a0"
73-
"cdklabs.generative-ai-cdk-constructs" = "^0.1.146"
73+
"cdklabs.generative-ai-cdk-constructs" = "^0.1.150"
7474
pytest-benchmark = "^4.0.0"
7575
mypy-boto3-appconfig = "^1.34.58"
7676
mypy-boto3-cloudformation = "^1.34.84"

0 commit comments

Comments
 (0)