aws-cdk-lib 2.179.0__py3-none-any.whl → 2.181.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +92 -34
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.179.0.jsii.tgz → aws-cdk-lib@2.181.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +48 -1
- aws_cdk/aws_apigateway/__init__.py +6 -6
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_backup/__init__.py +89 -0
- aws_cdk/aws_batch/__init__.py +89 -50
- aws_cdk/aws_bedrock/__init__.py +1265 -62
- aws_cdk/aws_chatbot/__init__.py +80 -53
- aws_cdk/aws_cloudformation/__init__.py +40 -8
- aws_cdk/aws_cloudfront/__init__.py +1046 -155
- aws_cdk/aws_cloudfront_origins/__init__.py +1338 -144
- aws_cdk/aws_cloudtrail/__init__.py +4 -8
- aws_cdk/aws_cloudwatch/__init__.py +1 -1
- aws_cdk/aws_codebuild/__init__.py +2 -2
- aws_cdk/aws_codepipeline/__init__.py +24 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +28 -1
- aws_cdk/aws_codestar/__init__.py +2 -1
- aws_cdk/aws_cognito/__init__.py +100 -13
- aws_cdk/aws_config/__init__.py +3 -3
- aws_cdk/aws_connect/__init__.py +257 -0
- aws_cdk/aws_datasync/__init__.py +279 -50
- aws_cdk/aws_deadline/__init__.py +683 -6
- aws_cdk/aws_directoryservice/__init__.py +9 -4
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_dms/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +4 -58
- aws_cdk/aws_ec2/__init__.py +377 -121
- aws_cdk/aws_ecs/__init__.py +37 -46
- aws_cdk/aws_efs/__init__.py +1 -1
- aws_cdk/aws_eks/__init__.py +19 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +13 -27
- aws_cdk/aws_emrcontainers/__init__.py +44 -1
- aws_cdk/aws_events/__init__.py +8 -11
- aws_cdk/aws_fms/__init__.py +5 -5
- aws_cdk/aws_fsx/__init__.py +5 -4
- aws_cdk/aws_glue/__init__.py +161 -0
- aws_cdk/aws_groundstation/__init__.py +23 -1
- aws_cdk/aws_iam/__init__.py +12 -12
- aws_cdk/aws_iot/__init__.py +7 -0
- aws_cdk/aws_ivs/__init__.py +17 -8
- aws_cdk/aws_kinesis/__init__.py +689 -35
- aws_cdk/aws_lambda/__init__.py +10 -15
- aws_cdk/aws_lambda_event_sources/__init__.py +175 -2
- aws_cdk/aws_medialive/__init__.py +314 -4
- aws_cdk/aws_mediapackagev2/__init__.py +228 -0
- aws_cdk/aws_networkfirewall/__init__.py +3 -3
- aws_cdk/aws_opensearchserverless/__init__.py +31 -8
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_pcaconnectorscep/__init__.py +1 -1
- aws_cdk/aws_rds/__init__.py +456 -100
- aws_cdk/aws_s3/__init__.py +278 -0
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_ses/__init__.py +228 -8
- aws_cdk/aws_ssm/__init__.py +9 -10
- aws_cdk/aws_stepfunctions/__init__.py +345 -70
- aws_cdk/aws_stepfunctions_tasks/__init__.py +142 -142
- aws_cdk/aws_supportapp/__init__.py +7 -7
- aws_cdk/aws_transfer/__init__.py +829 -4
- aws_cdk/aws_wafv2/__init__.py +17 -9
- aws_cdk/aws_wisdom/__init__.py +149 -4
- aws_cdk/custom_resources/__init__.py +23 -26
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/RECORD +70 -70
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -142,9 +142,25 @@ class CfnAgent(
|
|
|
142
142
|
parent_action_group_signature="parentActionGroupSignature",
|
|
143
143
|
skip_resource_in_use_check_on_delete=False
|
|
144
144
|
)],
|
|
145
|
+
agent_collaboration="agentCollaboration",
|
|
146
|
+
agent_collaborators=[bedrock.CfnAgent.AgentCollaboratorProperty(
|
|
147
|
+
agent_descriptor=bedrock.CfnAgent.AgentDescriptorProperty(
|
|
148
|
+
alias_arn="aliasArn"
|
|
149
|
+
),
|
|
150
|
+
collaboration_instruction="collaborationInstruction",
|
|
151
|
+
collaborator_name="collaboratorName",
|
|
152
|
+
|
|
153
|
+
# the properties below are optional
|
|
154
|
+
relay_conversation_history="relayConversationHistory"
|
|
155
|
+
)],
|
|
145
156
|
agent_resource_role_arn="agentResourceRoleArn",
|
|
146
157
|
auto_prepare=False,
|
|
147
158
|
customer_encryption_key_arn="customerEncryptionKeyArn",
|
|
159
|
+
custom_orchestration=bedrock.CfnAgent.CustomOrchestrationProperty(
|
|
160
|
+
executor=bedrock.CfnAgent.OrchestrationExecutorProperty(
|
|
161
|
+
lambda_="lambda"
|
|
162
|
+
)
|
|
163
|
+
),
|
|
148
164
|
description="description",
|
|
149
165
|
foundation_model="foundationModel",
|
|
150
166
|
guardrail_configuration=bedrock.CfnAgent.GuardrailConfigurationProperty(
|
|
@@ -160,9 +176,18 @@ class CfnAgent(
|
|
|
160
176
|
# the properties below are optional
|
|
161
177
|
knowledge_base_state="knowledgeBaseState"
|
|
162
178
|
)],
|
|
179
|
+
memory_configuration=bedrock.CfnAgent.MemoryConfigurationProperty(
|
|
180
|
+
enabled_memory_types=["enabledMemoryTypes"],
|
|
181
|
+
session_summary_configuration=bedrock.CfnAgent.SessionSummaryConfigurationProperty(
|
|
182
|
+
max_recent_sessions=123
|
|
183
|
+
),
|
|
184
|
+
storage_days=123
|
|
185
|
+
),
|
|
186
|
+
orchestration_type="orchestrationType",
|
|
163
187
|
prompt_override_configuration=bedrock.CfnAgent.PromptOverrideConfigurationProperty(
|
|
164
188
|
prompt_configurations=[bedrock.CfnAgent.PromptConfigurationProperty(
|
|
165
189
|
base_prompt_template="basePromptTemplate",
|
|
190
|
+
foundation_model="foundationModel",
|
|
166
191
|
inference_configuration=bedrock.CfnAgent.InferenceConfigurationProperty(
|
|
167
192
|
maximum_length=123,
|
|
168
193
|
stop_sequences=["stopSequences"],
|
|
@@ -196,15 +221,20 @@ class CfnAgent(
|
|
|
196
221
|
*,
|
|
197
222
|
agent_name: builtins.str,
|
|
198
223
|
action_groups: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.AgentActionGroupProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
224
|
+
agent_collaboration: typing.Optional[builtins.str] = None,
|
|
225
|
+
agent_collaborators: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.AgentCollaboratorProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
199
226
|
agent_resource_role_arn: typing.Optional[builtins.str] = None,
|
|
200
227
|
auto_prepare: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
201
228
|
customer_encryption_key_arn: typing.Optional[builtins.str] = None,
|
|
229
|
+
custom_orchestration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.CustomOrchestrationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
202
230
|
description: typing.Optional[builtins.str] = None,
|
|
203
231
|
foundation_model: typing.Optional[builtins.str] = None,
|
|
204
232
|
guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
205
233
|
idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
|
|
206
234
|
instruction: typing.Optional[builtins.str] = None,
|
|
207
235
|
knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.AgentKnowledgeBaseProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
236
|
+
memory_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.MemoryConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
237
|
+
orchestration_type: typing.Optional[builtins.str] = None,
|
|
208
238
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.PromptOverrideConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
209
239
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
210
240
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
@@ -215,15 +245,20 @@ class CfnAgent(
|
|
|
215
245
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
216
246
|
:param agent_name: The name of the agent.
|
|
217
247
|
:param action_groups: The action groups that belong to an agent.
|
|
248
|
+
:param agent_collaboration: The agent's collaboration settings.
|
|
249
|
+
:param agent_collaborators: List of Agent Collaborators.
|
|
218
250
|
:param agent_resource_role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
|
219
251
|
:param auto_prepare: Specifies whether to automatically update the ``DRAFT`` version of the agent after making changes to the agent. The ``DRAFT`` version can be continually iterated upon during internal development. By default, this value is ``false`` . Default: - false
|
|
220
252
|
:param customer_encryption_key_arn: The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.
|
|
253
|
+
:param custom_orchestration: Contains custom orchestration configurations for the agent.
|
|
221
254
|
:param description: The description of the agent.
|
|
222
255
|
:param foundation_model: The foundation model used for orchestration by the agent.
|
|
223
256
|
:param guardrail_configuration: Details about the guardrail associated with the agent.
|
|
224
257
|
:param idle_session_ttl_in_seconds: The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
|
|
225
258
|
:param instruction: Instructions that tell the agent what it should do and how it should interact with users.
|
|
226
259
|
:param knowledge_bases: The knowledge bases associated with the agent.
|
|
260
|
+
:param memory_configuration: Contains memory configuration for the agent.
|
|
261
|
+
:param orchestration_type: Specifies the orchestration strategy for the agent.
|
|
227
262
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
228
263
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
229
264
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
@@ -236,15 +271,20 @@ class CfnAgent(
|
|
|
236
271
|
props = CfnAgentProps(
|
|
237
272
|
agent_name=agent_name,
|
|
238
273
|
action_groups=action_groups,
|
|
274
|
+
agent_collaboration=agent_collaboration,
|
|
275
|
+
agent_collaborators=agent_collaborators,
|
|
239
276
|
agent_resource_role_arn=agent_resource_role_arn,
|
|
240
277
|
auto_prepare=auto_prepare,
|
|
241
278
|
customer_encryption_key_arn=customer_encryption_key_arn,
|
|
279
|
+
custom_orchestration=custom_orchestration,
|
|
242
280
|
description=description,
|
|
243
281
|
foundation_model=foundation_model,
|
|
244
282
|
guardrail_configuration=guardrail_configuration,
|
|
245
283
|
idle_session_ttl_in_seconds=idle_session_ttl_in_seconds,
|
|
246
284
|
instruction=instruction,
|
|
247
285
|
knowledge_bases=knowledge_bases,
|
|
286
|
+
memory_configuration=memory_configuration,
|
|
287
|
+
orchestration_type=orchestration_type,
|
|
248
288
|
prompt_override_configuration=prompt_override_configuration,
|
|
249
289
|
skip_resource_in_use_check_on_delete=skip_resource_in_use_check_on_delete,
|
|
250
290
|
tags=tags,
|
|
@@ -414,6 +454,37 @@ class CfnAgent(
|
|
|
414
454
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
415
455
|
jsii.set(self, "actionGroups", value) # pyright: ignore[reportArgumentType]
|
|
416
456
|
|
|
457
|
+
@builtins.property
|
|
458
|
+
@jsii.member(jsii_name="agentCollaboration")
|
|
459
|
+
def agent_collaboration(self) -> typing.Optional[builtins.str]:
|
|
460
|
+
'''The agent's collaboration settings.'''
|
|
461
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "agentCollaboration"))
|
|
462
|
+
|
|
463
|
+
@agent_collaboration.setter
|
|
464
|
+
def agent_collaboration(self, value: typing.Optional[builtins.str]) -> None:
|
|
465
|
+
if __debug__:
|
|
466
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f72731f646fedd7539af4983fabc50f2c79adcf5dcc355889ab876a9fd11ec84)
|
|
467
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
468
|
+
jsii.set(self, "agentCollaboration", value) # pyright: ignore[reportArgumentType]
|
|
469
|
+
|
|
470
|
+
@builtins.property
|
|
471
|
+
@jsii.member(jsii_name="agentCollaborators")
|
|
472
|
+
def agent_collaborators(
|
|
473
|
+
self,
|
|
474
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAgent.AgentCollaboratorProperty"]]]]:
|
|
475
|
+
'''List of Agent Collaborators.'''
|
|
476
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAgent.AgentCollaboratorProperty"]]]], jsii.get(self, "agentCollaborators"))
|
|
477
|
+
|
|
478
|
+
@agent_collaborators.setter
|
|
479
|
+
def agent_collaborators(
|
|
480
|
+
self,
|
|
481
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAgent.AgentCollaboratorProperty"]]]],
|
|
482
|
+
) -> None:
|
|
483
|
+
if __debug__:
|
|
484
|
+
type_hints = typing.get_type_hints(_typecheckingstub__beaf0ac8c454f4f172dbcf09f365797fb7a54df60711cb70b40118abac7f58e6)
|
|
485
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
486
|
+
jsii.set(self, "agentCollaborators", value) # pyright: ignore[reportArgumentType]
|
|
487
|
+
|
|
417
488
|
@builtins.property
|
|
418
489
|
@jsii.member(jsii_name="agentResourceRoleArn")
|
|
419
490
|
def agent_resource_role_arn(self) -> typing.Optional[builtins.str]:
|
|
@@ -458,6 +529,24 @@ class CfnAgent(
|
|
|
458
529
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
459
530
|
jsii.set(self, "customerEncryptionKeyArn", value) # pyright: ignore[reportArgumentType]
|
|
460
531
|
|
|
532
|
+
@builtins.property
|
|
533
|
+
@jsii.member(jsii_name="customOrchestration")
|
|
534
|
+
def custom_orchestration(
|
|
535
|
+
self,
|
|
536
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.CustomOrchestrationProperty"]]:
|
|
537
|
+
'''Contains custom orchestration configurations for the agent.'''
|
|
538
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.CustomOrchestrationProperty"]], jsii.get(self, "customOrchestration"))
|
|
539
|
+
|
|
540
|
+
@custom_orchestration.setter
|
|
541
|
+
def custom_orchestration(
|
|
542
|
+
self,
|
|
543
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.CustomOrchestrationProperty"]],
|
|
544
|
+
) -> None:
|
|
545
|
+
if __debug__:
|
|
546
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7bb692aac81267c6a096be6d5432d60a3b62015a610ff438f037460627f13be6)
|
|
547
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
548
|
+
jsii.set(self, "customOrchestration", value) # pyright: ignore[reportArgumentType]
|
|
549
|
+
|
|
461
550
|
@builtins.property
|
|
462
551
|
@jsii.member(jsii_name="description")
|
|
463
552
|
def description(self) -> typing.Optional[builtins.str]:
|
|
@@ -546,6 +635,37 @@ class CfnAgent(
|
|
|
546
635
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
547
636
|
jsii.set(self, "knowledgeBases", value) # pyright: ignore[reportArgumentType]
|
|
548
637
|
|
|
638
|
+
@builtins.property
|
|
639
|
+
@jsii.member(jsii_name="memoryConfiguration")
|
|
640
|
+
def memory_configuration(
|
|
641
|
+
self,
|
|
642
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.MemoryConfigurationProperty"]]:
|
|
643
|
+
'''Contains memory configuration for the agent.'''
|
|
644
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.MemoryConfigurationProperty"]], jsii.get(self, "memoryConfiguration"))
|
|
645
|
+
|
|
646
|
+
@memory_configuration.setter
|
|
647
|
+
def memory_configuration(
|
|
648
|
+
self,
|
|
649
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.MemoryConfigurationProperty"]],
|
|
650
|
+
) -> None:
|
|
651
|
+
if __debug__:
|
|
652
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9dcb39dfb48769eecfe69ce4ba13939ca98bab37df34c9552a9c60b22b526b0e)
|
|
653
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
654
|
+
jsii.set(self, "memoryConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
655
|
+
|
|
656
|
+
@builtins.property
|
|
657
|
+
@jsii.member(jsii_name="orchestrationType")
|
|
658
|
+
def orchestration_type(self) -> typing.Optional[builtins.str]:
|
|
659
|
+
'''Specifies the orchestration strategy for the agent.'''
|
|
660
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "orchestrationType"))
|
|
661
|
+
|
|
662
|
+
@orchestration_type.setter
|
|
663
|
+
def orchestration_type(self, value: typing.Optional[builtins.str]) -> None:
|
|
664
|
+
if __debug__:
|
|
665
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b83053d356c226028b8355aa1c0c7019f211c5e848e3b71a72e98d30697ffe6a)
|
|
666
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
667
|
+
jsii.set(self, "orchestrationType", value) # pyright: ignore[reportArgumentType]
|
|
668
|
+
|
|
549
669
|
@builtins.property
|
|
550
670
|
@jsii.member(jsii_name="promptOverrideConfiguration")
|
|
551
671
|
def prompt_override_configuration(
|
|
@@ -983,6 +1103,169 @@ class CfnAgent(
|
|
|
983
1103
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
984
1104
|
)
|
|
985
1105
|
|
|
1106
|
+
@jsii.data_type(
|
|
1107
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.AgentCollaboratorProperty",
|
|
1108
|
+
jsii_struct_bases=[],
|
|
1109
|
+
name_mapping={
|
|
1110
|
+
"agent_descriptor": "agentDescriptor",
|
|
1111
|
+
"collaboration_instruction": "collaborationInstruction",
|
|
1112
|
+
"collaborator_name": "collaboratorName",
|
|
1113
|
+
"relay_conversation_history": "relayConversationHistory",
|
|
1114
|
+
},
|
|
1115
|
+
)
|
|
1116
|
+
class AgentCollaboratorProperty:
|
|
1117
|
+
def __init__(
|
|
1118
|
+
self,
|
|
1119
|
+
*,
|
|
1120
|
+
agent_descriptor: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.AgentDescriptorProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1121
|
+
collaboration_instruction: builtins.str,
|
|
1122
|
+
collaborator_name: builtins.str,
|
|
1123
|
+
relay_conversation_history: typing.Optional[builtins.str] = None,
|
|
1124
|
+
) -> None:
|
|
1125
|
+
'''An agent collaborator.
|
|
1126
|
+
|
|
1127
|
+
:param agent_descriptor: The collaborator's agent descriptor.
|
|
1128
|
+
:param collaboration_instruction: The collaborator's instructions.
|
|
1129
|
+
:param collaborator_name: The collaborator's collaborator name.
|
|
1130
|
+
:param relay_conversation_history: The collaborator's relay conversation history.
|
|
1131
|
+
|
|
1132
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentcollaborator.html
|
|
1133
|
+
:exampleMetadata: fixture=_generated
|
|
1134
|
+
|
|
1135
|
+
Example::
|
|
1136
|
+
|
|
1137
|
+
# The code below shows an example of how to instantiate this type.
|
|
1138
|
+
# The values are placeholders you should change.
|
|
1139
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1140
|
+
|
|
1141
|
+
agent_collaborator_property = bedrock.CfnAgent.AgentCollaboratorProperty(
|
|
1142
|
+
agent_descriptor=bedrock.CfnAgent.AgentDescriptorProperty(
|
|
1143
|
+
alias_arn="aliasArn"
|
|
1144
|
+
),
|
|
1145
|
+
collaboration_instruction="collaborationInstruction",
|
|
1146
|
+
collaborator_name="collaboratorName",
|
|
1147
|
+
|
|
1148
|
+
# the properties below are optional
|
|
1149
|
+
relay_conversation_history="relayConversationHistory"
|
|
1150
|
+
)
|
|
1151
|
+
'''
|
|
1152
|
+
if __debug__:
|
|
1153
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5b97ab11870f9ef63341839508203eb703dc88dada2d1e54dee2d5aea5d7c15e)
|
|
1154
|
+
check_type(argname="argument agent_descriptor", value=agent_descriptor, expected_type=type_hints["agent_descriptor"])
|
|
1155
|
+
check_type(argname="argument collaboration_instruction", value=collaboration_instruction, expected_type=type_hints["collaboration_instruction"])
|
|
1156
|
+
check_type(argname="argument collaborator_name", value=collaborator_name, expected_type=type_hints["collaborator_name"])
|
|
1157
|
+
check_type(argname="argument relay_conversation_history", value=relay_conversation_history, expected_type=type_hints["relay_conversation_history"])
|
|
1158
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1159
|
+
"agent_descriptor": agent_descriptor,
|
|
1160
|
+
"collaboration_instruction": collaboration_instruction,
|
|
1161
|
+
"collaborator_name": collaborator_name,
|
|
1162
|
+
}
|
|
1163
|
+
if relay_conversation_history is not None:
|
|
1164
|
+
self._values["relay_conversation_history"] = relay_conversation_history
|
|
1165
|
+
|
|
1166
|
+
@builtins.property
|
|
1167
|
+
def agent_descriptor(
|
|
1168
|
+
self,
|
|
1169
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAgent.AgentDescriptorProperty"]:
|
|
1170
|
+
'''The collaborator's agent descriptor.
|
|
1171
|
+
|
|
1172
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentcollaborator.html#cfn-bedrock-agent-agentcollaborator-agentdescriptor
|
|
1173
|
+
'''
|
|
1174
|
+
result = self._values.get("agent_descriptor")
|
|
1175
|
+
assert result is not None, "Required property 'agent_descriptor' is missing"
|
|
1176
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAgent.AgentDescriptorProperty"], result)
|
|
1177
|
+
|
|
1178
|
+
@builtins.property
|
|
1179
|
+
def collaboration_instruction(self) -> builtins.str:
|
|
1180
|
+
'''The collaborator's instructions.
|
|
1181
|
+
|
|
1182
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentcollaborator.html#cfn-bedrock-agent-agentcollaborator-collaborationinstruction
|
|
1183
|
+
'''
|
|
1184
|
+
result = self._values.get("collaboration_instruction")
|
|
1185
|
+
assert result is not None, "Required property 'collaboration_instruction' is missing"
|
|
1186
|
+
return typing.cast(builtins.str, result)
|
|
1187
|
+
|
|
1188
|
+
@builtins.property
|
|
1189
|
+
def collaborator_name(self) -> builtins.str:
|
|
1190
|
+
'''The collaborator's collaborator name.
|
|
1191
|
+
|
|
1192
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentcollaborator.html#cfn-bedrock-agent-agentcollaborator-collaboratorname
|
|
1193
|
+
'''
|
|
1194
|
+
result = self._values.get("collaborator_name")
|
|
1195
|
+
assert result is not None, "Required property 'collaborator_name' is missing"
|
|
1196
|
+
return typing.cast(builtins.str, result)
|
|
1197
|
+
|
|
1198
|
+
@builtins.property
|
|
1199
|
+
def relay_conversation_history(self) -> typing.Optional[builtins.str]:
|
|
1200
|
+
'''The collaborator's relay conversation history.
|
|
1201
|
+
|
|
1202
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentcollaborator.html#cfn-bedrock-agent-agentcollaborator-relayconversationhistory
|
|
1203
|
+
'''
|
|
1204
|
+
result = self._values.get("relay_conversation_history")
|
|
1205
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1206
|
+
|
|
1207
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1208
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1209
|
+
|
|
1210
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1211
|
+
return not (rhs == self)
|
|
1212
|
+
|
|
1213
|
+
def __repr__(self) -> str:
|
|
1214
|
+
return "AgentCollaboratorProperty(%s)" % ", ".join(
|
|
1215
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1216
|
+
)
|
|
1217
|
+
|
|
1218
|
+
@jsii.data_type(
|
|
1219
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.AgentDescriptorProperty",
|
|
1220
|
+
jsii_struct_bases=[],
|
|
1221
|
+
name_mapping={"alias_arn": "aliasArn"},
|
|
1222
|
+
)
|
|
1223
|
+
class AgentDescriptorProperty:
|
|
1224
|
+
def __init__(self, *, alias_arn: typing.Optional[builtins.str] = None) -> None:
|
|
1225
|
+
'''An agent descriptor.
|
|
1226
|
+
|
|
1227
|
+
:param alias_arn: The agent's alias ARN.
|
|
1228
|
+
|
|
1229
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentdescriptor.html
|
|
1230
|
+
:exampleMetadata: fixture=_generated
|
|
1231
|
+
|
|
1232
|
+
Example::
|
|
1233
|
+
|
|
1234
|
+
# The code below shows an example of how to instantiate this type.
|
|
1235
|
+
# The values are placeholders you should change.
|
|
1236
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1237
|
+
|
|
1238
|
+
agent_descriptor_property = bedrock.CfnAgent.AgentDescriptorProperty(
|
|
1239
|
+
alias_arn="aliasArn"
|
|
1240
|
+
)
|
|
1241
|
+
'''
|
|
1242
|
+
if __debug__:
|
|
1243
|
+
type_hints = typing.get_type_hints(_typecheckingstub__de3d75bfeea411f0afb63f871615ea4feea519d794973992b49e0847c868c558)
|
|
1244
|
+
check_type(argname="argument alias_arn", value=alias_arn, expected_type=type_hints["alias_arn"])
|
|
1245
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1246
|
+
if alias_arn is not None:
|
|
1247
|
+
self._values["alias_arn"] = alias_arn
|
|
1248
|
+
|
|
1249
|
+
@builtins.property
|
|
1250
|
+
def alias_arn(self) -> typing.Optional[builtins.str]:
|
|
1251
|
+
'''The agent's alias ARN.
|
|
1252
|
+
|
|
1253
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentdescriptor.html#cfn-bedrock-agent-agentdescriptor-aliasarn
|
|
1254
|
+
'''
|
|
1255
|
+
result = self._values.get("alias_arn")
|
|
1256
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1257
|
+
|
|
1258
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1259
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1260
|
+
|
|
1261
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1262
|
+
return not (rhs == self)
|
|
1263
|
+
|
|
1264
|
+
def __repr__(self) -> str:
|
|
1265
|
+
return "AgentDescriptorProperty(%s)" % ", ".join(
|
|
1266
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1267
|
+
)
|
|
1268
|
+
|
|
986
1269
|
@jsii.data_type(
|
|
987
1270
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.AgentKnowledgeBaseProperty",
|
|
988
1271
|
jsii_struct_bases=[],
|
|
@@ -1075,6 +1358,65 @@ class CfnAgent(
|
|
|
1075
1358
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1076
1359
|
)
|
|
1077
1360
|
|
|
1361
|
+
@jsii.data_type(
|
|
1362
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.CustomOrchestrationProperty",
|
|
1363
|
+
jsii_struct_bases=[],
|
|
1364
|
+
name_mapping={"executor": "executor"},
|
|
1365
|
+
)
|
|
1366
|
+
class CustomOrchestrationProperty:
|
|
1367
|
+
def __init__(
|
|
1368
|
+
self,
|
|
1369
|
+
*,
|
|
1370
|
+
executor: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.OrchestrationExecutorProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1371
|
+
) -> None:
|
|
1372
|
+
'''Details of custom orchestration.
|
|
1373
|
+
|
|
1374
|
+
:param executor: The structure of the executor invoking the actions in custom orchestration.
|
|
1375
|
+
|
|
1376
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-customorchestration.html
|
|
1377
|
+
:exampleMetadata: fixture=_generated
|
|
1378
|
+
|
|
1379
|
+
Example::
|
|
1380
|
+
|
|
1381
|
+
# The code below shows an example of how to instantiate this type.
|
|
1382
|
+
# The values are placeholders you should change.
|
|
1383
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1384
|
+
|
|
1385
|
+
custom_orchestration_property = bedrock.CfnAgent.CustomOrchestrationProperty(
|
|
1386
|
+
executor=bedrock.CfnAgent.OrchestrationExecutorProperty(
|
|
1387
|
+
lambda_="lambda"
|
|
1388
|
+
)
|
|
1389
|
+
)
|
|
1390
|
+
'''
|
|
1391
|
+
if __debug__:
|
|
1392
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e4ae7734d910a065f88411f3aa364ce4517ea8bee41915539d6dffda73fd47dc)
|
|
1393
|
+
check_type(argname="argument executor", value=executor, expected_type=type_hints["executor"])
|
|
1394
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1395
|
+
if executor is not None:
|
|
1396
|
+
self._values["executor"] = executor
|
|
1397
|
+
|
|
1398
|
+
@builtins.property
|
|
1399
|
+
def executor(
|
|
1400
|
+
self,
|
|
1401
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.OrchestrationExecutorProperty"]]:
|
|
1402
|
+
'''The structure of the executor invoking the actions in custom orchestration.
|
|
1403
|
+
|
|
1404
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-customorchestration.html#cfn-bedrock-agent-customorchestration-executor
|
|
1405
|
+
'''
|
|
1406
|
+
result = self._values.get("executor")
|
|
1407
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.OrchestrationExecutorProperty"]], result)
|
|
1408
|
+
|
|
1409
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1410
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1411
|
+
|
|
1412
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1413
|
+
return not (rhs == self)
|
|
1414
|
+
|
|
1415
|
+
def __repr__(self) -> str:
|
|
1416
|
+
return "CustomOrchestrationProperty(%s)" % ", ".join(
|
|
1417
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1418
|
+
)
|
|
1419
|
+
|
|
1078
1420
|
@jsii.data_type(
|
|
1079
1421
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.FunctionProperty",
|
|
1080
1422
|
jsii_struct_bases=[],
|
|
@@ -1484,6 +1826,151 @@ class CfnAgent(
|
|
|
1484
1826
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1485
1827
|
)
|
|
1486
1828
|
|
|
1829
|
+
@jsii.data_type(
|
|
1830
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.MemoryConfigurationProperty",
|
|
1831
|
+
jsii_struct_bases=[],
|
|
1832
|
+
name_mapping={
|
|
1833
|
+
"enabled_memory_types": "enabledMemoryTypes",
|
|
1834
|
+
"session_summary_configuration": "sessionSummaryConfiguration",
|
|
1835
|
+
"storage_days": "storageDays",
|
|
1836
|
+
},
|
|
1837
|
+
)
|
|
1838
|
+
class MemoryConfigurationProperty:
|
|
1839
|
+
def __init__(
|
|
1840
|
+
self,
|
|
1841
|
+
*,
|
|
1842
|
+
enabled_memory_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1843
|
+
session_summary_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.SessionSummaryConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1844
|
+
storage_days: typing.Optional[jsii.Number] = None,
|
|
1845
|
+
) -> None:
|
|
1846
|
+
'''Details of the memory configuration.
|
|
1847
|
+
|
|
1848
|
+
:param enabled_memory_types: The type of memory that is stored.
|
|
1849
|
+
:param session_summary_configuration: Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
|
|
1850
|
+
:param storage_days: The number of days the agent is configured to retain the conversational context.
|
|
1851
|
+
|
|
1852
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-memoryconfiguration.html
|
|
1853
|
+
:exampleMetadata: fixture=_generated
|
|
1854
|
+
|
|
1855
|
+
Example::
|
|
1856
|
+
|
|
1857
|
+
# The code below shows an example of how to instantiate this type.
|
|
1858
|
+
# The values are placeholders you should change.
|
|
1859
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1860
|
+
|
|
1861
|
+
memory_configuration_property = bedrock.CfnAgent.MemoryConfigurationProperty(
|
|
1862
|
+
enabled_memory_types=["enabledMemoryTypes"],
|
|
1863
|
+
session_summary_configuration=bedrock.CfnAgent.SessionSummaryConfigurationProperty(
|
|
1864
|
+
max_recent_sessions=123
|
|
1865
|
+
),
|
|
1866
|
+
storage_days=123
|
|
1867
|
+
)
|
|
1868
|
+
'''
|
|
1869
|
+
if __debug__:
|
|
1870
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7d96229de78435013ea720d3fc5416b1a58de73df8a7fd00fc563b8fe5255a40)
|
|
1871
|
+
check_type(argname="argument enabled_memory_types", value=enabled_memory_types, expected_type=type_hints["enabled_memory_types"])
|
|
1872
|
+
check_type(argname="argument session_summary_configuration", value=session_summary_configuration, expected_type=type_hints["session_summary_configuration"])
|
|
1873
|
+
check_type(argname="argument storage_days", value=storage_days, expected_type=type_hints["storage_days"])
|
|
1874
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1875
|
+
if enabled_memory_types is not None:
|
|
1876
|
+
self._values["enabled_memory_types"] = enabled_memory_types
|
|
1877
|
+
if session_summary_configuration is not None:
|
|
1878
|
+
self._values["session_summary_configuration"] = session_summary_configuration
|
|
1879
|
+
if storage_days is not None:
|
|
1880
|
+
self._values["storage_days"] = storage_days
|
|
1881
|
+
|
|
1882
|
+
@builtins.property
|
|
1883
|
+
def enabled_memory_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1884
|
+
'''The type of memory that is stored.
|
|
1885
|
+
|
|
1886
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-memoryconfiguration.html#cfn-bedrock-agent-memoryconfiguration-enabledmemorytypes
|
|
1887
|
+
'''
|
|
1888
|
+
result = self._values.get("enabled_memory_types")
|
|
1889
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
1890
|
+
|
|
1891
|
+
@builtins.property
|
|
1892
|
+
def session_summary_configuration(
|
|
1893
|
+
self,
|
|
1894
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.SessionSummaryConfigurationProperty"]]:
|
|
1895
|
+
'''Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
|
|
1896
|
+
|
|
1897
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-memoryconfiguration.html#cfn-bedrock-agent-memoryconfiguration-sessionsummaryconfiguration
|
|
1898
|
+
'''
|
|
1899
|
+
result = self._values.get("session_summary_configuration")
|
|
1900
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.SessionSummaryConfigurationProperty"]], result)
|
|
1901
|
+
|
|
1902
|
+
@builtins.property
|
|
1903
|
+
def storage_days(self) -> typing.Optional[jsii.Number]:
|
|
1904
|
+
'''The number of days the agent is configured to retain the conversational context.
|
|
1905
|
+
|
|
1906
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-memoryconfiguration.html#cfn-bedrock-agent-memoryconfiguration-storagedays
|
|
1907
|
+
'''
|
|
1908
|
+
result = self._values.get("storage_days")
|
|
1909
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1910
|
+
|
|
1911
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1912
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1913
|
+
|
|
1914
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1915
|
+
return not (rhs == self)
|
|
1916
|
+
|
|
1917
|
+
def __repr__(self) -> str:
|
|
1918
|
+
return "MemoryConfigurationProperty(%s)" % ", ".join(
|
|
1919
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1920
|
+
)
|
|
1921
|
+
|
|
1922
|
+
@jsii.data_type(
|
|
1923
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.OrchestrationExecutorProperty",
|
|
1924
|
+
jsii_struct_bases=[],
|
|
1925
|
+
name_mapping={"lambda_": "lambda"},
|
|
1926
|
+
)
|
|
1927
|
+
class OrchestrationExecutorProperty:
|
|
1928
|
+
def __init__(self, *, lambda_: builtins.str) -> None:
|
|
1929
|
+
'''Contains details about the Lambda function containing the orchestration logic carried out upon invoking the custom orchestration.
|
|
1930
|
+
|
|
1931
|
+
:param lambda_: The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
1932
|
+
|
|
1933
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-orchestrationexecutor.html
|
|
1934
|
+
:exampleMetadata: fixture=_generated
|
|
1935
|
+
|
|
1936
|
+
Example::
|
|
1937
|
+
|
|
1938
|
+
# The code below shows an example of how to instantiate this type.
|
|
1939
|
+
# The values are placeholders you should change.
|
|
1940
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1941
|
+
|
|
1942
|
+
orchestration_executor_property = bedrock.CfnAgent.OrchestrationExecutorProperty(
|
|
1943
|
+
lambda_="lambda"
|
|
1944
|
+
)
|
|
1945
|
+
'''
|
|
1946
|
+
if __debug__:
|
|
1947
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9bcfed5f99644abac9695b68367aa4ad30c588f8cc060125d511ce6cd7b85deb)
|
|
1948
|
+
check_type(argname="argument lambda_", value=lambda_, expected_type=type_hints["lambda_"])
|
|
1949
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1950
|
+
"lambda_": lambda_,
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
@builtins.property
|
|
1954
|
+
def lambda_(self) -> builtins.str:
|
|
1955
|
+
'''The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
1956
|
+
|
|
1957
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-orchestrationexecutor.html#cfn-bedrock-agent-orchestrationexecutor-lambda
|
|
1958
|
+
'''
|
|
1959
|
+
result = self._values.get("lambda_")
|
|
1960
|
+
assert result is not None, "Required property 'lambda_' is missing"
|
|
1961
|
+
return typing.cast(builtins.str, result)
|
|
1962
|
+
|
|
1963
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1964
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1965
|
+
|
|
1966
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1967
|
+
return not (rhs == self)
|
|
1968
|
+
|
|
1969
|
+
def __repr__(self) -> str:
|
|
1970
|
+
return "OrchestrationExecutorProperty(%s)" % ", ".join(
|
|
1971
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1972
|
+
)
|
|
1973
|
+
|
|
1487
1974
|
@jsii.data_type(
|
|
1488
1975
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.ParameterDetailProperty",
|
|
1489
1976
|
jsii_struct_bases=[],
|
|
@@ -1585,6 +2072,7 @@ class CfnAgent(
|
|
|
1585
2072
|
jsii_struct_bases=[],
|
|
1586
2073
|
name_mapping={
|
|
1587
2074
|
"base_prompt_template": "basePromptTemplate",
|
|
2075
|
+
"foundation_model": "foundationModel",
|
|
1588
2076
|
"inference_configuration": "inferenceConfiguration",
|
|
1589
2077
|
"parser_mode": "parserMode",
|
|
1590
2078
|
"prompt_creation_mode": "promptCreationMode",
|
|
@@ -1597,6 +2085,7 @@ class CfnAgent(
|
|
|
1597
2085
|
self,
|
|
1598
2086
|
*,
|
|
1599
2087
|
base_prompt_template: typing.Optional[builtins.str] = None,
|
|
2088
|
+
foundation_model: typing.Optional[builtins.str] = None,
|
|
1600
2089
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.InferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1601
2090
|
parser_mode: typing.Optional[builtins.str] = None,
|
|
1602
2091
|
prompt_creation_mode: typing.Optional[builtins.str] = None,
|
|
@@ -1608,8 +2097,9 @@ class CfnAgent(
|
|
|
1608
2097
|
For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
1609
2098
|
|
|
1610
2099
|
:param base_prompt_template: Defines the prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see `Prompt template placeholder variables <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html>`_ . For more information, see `Configure the prompt templates <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html>`_ .
|
|
2100
|
+
:param foundation_model: The agent's foundation model.
|
|
1611
2101
|
:param inference_configuration: Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the ``promptType`` . For more information, see `Inference parameters for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
1612
|
-
:param parser_mode: Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` . If you set the field as ``
|
|
2102
|
+
:param parser_mode: Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` . If you set the field as ``OVERRIDDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
|
|
1613
2103
|
:param prompt_creation_mode: Specifies whether to override the default prompt template for this ``promptType`` . Set this value to ``OVERRIDDEN`` to use the prompt that you provide in the ``basePromptTemplate`` . If you leave it as ``DEFAULT`` , the agent uses a default prompt template.
|
|
1614
2104
|
:param prompt_state: Specifies whether to allow the inline agent to carry out the step specified in the ``promptType`` . If you set this value to ``DISABLED`` , the agent skips that step. The default state for each ``promptType`` is as follows. - ``PRE_PROCESSING`` – ``ENABLED`` - ``ORCHESTRATION`` – ``ENABLED`` - ``KNOWLEDGE_BASE_RESPONSE_GENERATION`` – ``ENABLED`` - ``POST_PROCESSING`` – ``DISABLED``
|
|
1615
2105
|
:param prompt_type: The step in the agent sequence that this prompt configuration applies to.
|
|
@@ -1625,6 +2115,7 @@ class CfnAgent(
|
|
|
1625
2115
|
|
|
1626
2116
|
prompt_configuration_property = bedrock.CfnAgent.PromptConfigurationProperty(
|
|
1627
2117
|
base_prompt_template="basePromptTemplate",
|
|
2118
|
+
foundation_model="foundationModel",
|
|
1628
2119
|
inference_configuration=bedrock.CfnAgent.InferenceConfigurationProperty(
|
|
1629
2120
|
maximum_length=123,
|
|
1630
2121
|
stop_sequences=["stopSequences"],
|
|
@@ -1641,6 +2132,7 @@ class CfnAgent(
|
|
|
1641
2132
|
if __debug__:
|
|
1642
2133
|
type_hints = typing.get_type_hints(_typecheckingstub__072678823f2b5bb708860fe2f54d37c6a24153ba05ec6c798f1cbb1222e7cd7b)
|
|
1643
2134
|
check_type(argname="argument base_prompt_template", value=base_prompt_template, expected_type=type_hints["base_prompt_template"])
|
|
2135
|
+
check_type(argname="argument foundation_model", value=foundation_model, expected_type=type_hints["foundation_model"])
|
|
1644
2136
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
1645
2137
|
check_type(argname="argument parser_mode", value=parser_mode, expected_type=type_hints["parser_mode"])
|
|
1646
2138
|
check_type(argname="argument prompt_creation_mode", value=prompt_creation_mode, expected_type=type_hints["prompt_creation_mode"])
|
|
@@ -1649,6 +2141,8 @@ class CfnAgent(
|
|
|
1649
2141
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1650
2142
|
if base_prompt_template is not None:
|
|
1651
2143
|
self._values["base_prompt_template"] = base_prompt_template
|
|
2144
|
+
if foundation_model is not None:
|
|
2145
|
+
self._values["foundation_model"] = foundation_model
|
|
1652
2146
|
if inference_configuration is not None:
|
|
1653
2147
|
self._values["inference_configuration"] = inference_configuration
|
|
1654
2148
|
if parser_mode is not None:
|
|
@@ -1671,6 +2165,15 @@ class CfnAgent(
|
|
|
1671
2165
|
result = self._values.get("base_prompt_template")
|
|
1672
2166
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1673
2167
|
|
|
2168
|
+
@builtins.property
|
|
2169
|
+
def foundation_model(self) -> typing.Optional[builtins.str]:
|
|
2170
|
+
'''The agent's foundation model.
|
|
2171
|
+
|
|
2172
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptconfiguration.html#cfn-bedrock-agent-promptconfiguration-foundationmodel
|
|
2173
|
+
'''
|
|
2174
|
+
result = self._values.get("foundation_model")
|
|
2175
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2176
|
+
|
|
1674
2177
|
@builtins.property
|
|
1675
2178
|
def inference_configuration(
|
|
1676
2179
|
self,
|
|
@@ -1688,7 +2191,7 @@ class CfnAgent(
|
|
|
1688
2191
|
def parser_mode(self) -> typing.Optional[builtins.str]:
|
|
1689
2192
|
'''Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` .
|
|
1690
2193
|
|
|
1691
|
-
If you set the field as ``
|
|
2194
|
+
If you set the field as ``OVERRIDDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
|
|
1692
2195
|
|
|
1693
2196
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptconfiguration.html#cfn-bedrock-agent-promptconfiguration-parsermode
|
|
1694
2197
|
'''
|
|
@@ -1776,6 +2279,7 @@ class CfnAgent(
|
|
|
1776
2279
|
prompt_override_configuration_property = bedrock.CfnAgent.PromptOverrideConfigurationProperty(
|
|
1777
2280
|
prompt_configurations=[bedrock.CfnAgent.PromptConfigurationProperty(
|
|
1778
2281
|
base_prompt_template="basePromptTemplate",
|
|
2282
|
+
foundation_model="foundationModel",
|
|
1779
2283
|
inference_configuration=bedrock.CfnAgent.InferenceConfigurationProperty(
|
|
1780
2284
|
maximum_length=123,
|
|
1781
2285
|
stop_sequences=["stopSequences"],
|
|
@@ -1912,6 +2416,61 @@ class CfnAgent(
|
|
|
1912
2416
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1913
2417
|
)
|
|
1914
2418
|
|
|
2419
|
+
@jsii.data_type(
|
|
2420
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.SessionSummaryConfigurationProperty",
|
|
2421
|
+
jsii_struct_bases=[],
|
|
2422
|
+
name_mapping={"max_recent_sessions": "maxRecentSessions"},
|
|
2423
|
+
)
|
|
2424
|
+
class SessionSummaryConfigurationProperty:
|
|
2425
|
+
def __init__(
|
|
2426
|
+
self,
|
|
2427
|
+
*,
|
|
2428
|
+
max_recent_sessions: typing.Optional[jsii.Number] = None,
|
|
2429
|
+
) -> None:
|
|
2430
|
+
'''Configuration for SESSION_SUMMARY memory type enabled for the agent.
|
|
2431
|
+
|
|
2432
|
+
:param max_recent_sessions: Maximum number of recent session summaries to include in the agent's prompt context.
|
|
2433
|
+
|
|
2434
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-sessionsummaryconfiguration.html
|
|
2435
|
+
:exampleMetadata: fixture=_generated
|
|
2436
|
+
|
|
2437
|
+
Example::
|
|
2438
|
+
|
|
2439
|
+
# The code below shows an example of how to instantiate this type.
|
|
2440
|
+
# The values are placeholders you should change.
|
|
2441
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
2442
|
+
|
|
2443
|
+
session_summary_configuration_property = bedrock.CfnAgent.SessionSummaryConfigurationProperty(
|
|
2444
|
+
max_recent_sessions=123
|
|
2445
|
+
)
|
|
2446
|
+
'''
|
|
2447
|
+
if __debug__:
|
|
2448
|
+
type_hints = typing.get_type_hints(_typecheckingstub__72ecccaf4321d6b2cc729d5095c1fa5192a7db52f5293b6536bc7d335964a1d8)
|
|
2449
|
+
check_type(argname="argument max_recent_sessions", value=max_recent_sessions, expected_type=type_hints["max_recent_sessions"])
|
|
2450
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2451
|
+
if max_recent_sessions is not None:
|
|
2452
|
+
self._values["max_recent_sessions"] = max_recent_sessions
|
|
2453
|
+
|
|
2454
|
+
@builtins.property
|
|
2455
|
+
def max_recent_sessions(self) -> typing.Optional[jsii.Number]:
|
|
2456
|
+
'''Maximum number of recent session summaries to include in the agent's prompt context.
|
|
2457
|
+
|
|
2458
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-sessionsummaryconfiguration.html#cfn-bedrock-agent-sessionsummaryconfiguration-maxrecentsessions
|
|
2459
|
+
'''
|
|
2460
|
+
result = self._values.get("max_recent_sessions")
|
|
2461
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
2462
|
+
|
|
2463
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2464
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2465
|
+
|
|
2466
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2467
|
+
return not (rhs == self)
|
|
2468
|
+
|
|
2469
|
+
def __repr__(self) -> str:
|
|
2470
|
+
return "SessionSummaryConfigurationProperty(%s)" % ", ".join(
|
|
2471
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2472
|
+
)
|
|
2473
|
+
|
|
1915
2474
|
|
|
1916
2475
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
1917
2476
|
class CfnAgentAlias(
|
|
@@ -2055,6 +2614,7 @@ class CfnAgentAlias(
|
|
|
2055
2614
|
- FAILED – The agent alias API operation failed.
|
|
2056
2615
|
- UPDATING – The agent alias is being updated.
|
|
2057
2616
|
- DELETING – The agent alias is being deleted.
|
|
2617
|
+
- DISSOCIATED - The agent alias has no version associated with it.
|
|
2058
2618
|
|
|
2059
2619
|
:cloudformationAttribute: AgentAliasStatus
|
|
2060
2620
|
'''
|
|
@@ -2451,15 +3011,20 @@ class CfnAgentAliasProps:
|
|
|
2451
3011
|
name_mapping={
|
|
2452
3012
|
"agent_name": "agentName",
|
|
2453
3013
|
"action_groups": "actionGroups",
|
|
3014
|
+
"agent_collaboration": "agentCollaboration",
|
|
3015
|
+
"agent_collaborators": "agentCollaborators",
|
|
2454
3016
|
"agent_resource_role_arn": "agentResourceRoleArn",
|
|
2455
3017
|
"auto_prepare": "autoPrepare",
|
|
2456
3018
|
"customer_encryption_key_arn": "customerEncryptionKeyArn",
|
|
3019
|
+
"custom_orchestration": "customOrchestration",
|
|
2457
3020
|
"description": "description",
|
|
2458
3021
|
"foundation_model": "foundationModel",
|
|
2459
3022
|
"guardrail_configuration": "guardrailConfiguration",
|
|
2460
3023
|
"idle_session_ttl_in_seconds": "idleSessionTtlInSeconds",
|
|
2461
3024
|
"instruction": "instruction",
|
|
2462
3025
|
"knowledge_bases": "knowledgeBases",
|
|
3026
|
+
"memory_configuration": "memoryConfiguration",
|
|
3027
|
+
"orchestration_type": "orchestrationType",
|
|
2463
3028
|
"prompt_override_configuration": "promptOverrideConfiguration",
|
|
2464
3029
|
"skip_resource_in_use_check_on_delete": "skipResourceInUseCheckOnDelete",
|
|
2465
3030
|
"tags": "tags",
|
|
@@ -2472,15 +3037,20 @@ class CfnAgentProps:
|
|
|
2472
3037
|
*,
|
|
2473
3038
|
agent_name: builtins.str,
|
|
2474
3039
|
action_groups: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentActionGroupProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3040
|
+
agent_collaboration: typing.Optional[builtins.str] = None,
|
|
3041
|
+
agent_collaborators: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentCollaboratorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2475
3042
|
agent_resource_role_arn: typing.Optional[builtins.str] = None,
|
|
2476
3043
|
auto_prepare: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2477
3044
|
customer_encryption_key_arn: typing.Optional[builtins.str] = None,
|
|
3045
|
+
custom_orchestration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.CustomOrchestrationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2478
3046
|
description: typing.Optional[builtins.str] = None,
|
|
2479
3047
|
foundation_model: typing.Optional[builtins.str] = None,
|
|
2480
3048
|
guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2481
3049
|
idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
|
|
2482
3050
|
instruction: typing.Optional[builtins.str] = None,
|
|
2483
3051
|
knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3052
|
+
memory_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.MemoryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3053
|
+
orchestration_type: typing.Optional[builtins.str] = None,
|
|
2484
3054
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2485
3055
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2486
3056
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
@@ -2490,15 +3060,20 @@ class CfnAgentProps:
|
|
|
2490
3060
|
|
|
2491
3061
|
:param agent_name: The name of the agent.
|
|
2492
3062
|
:param action_groups: The action groups that belong to an agent.
|
|
3063
|
+
:param agent_collaboration: The agent's collaboration settings.
|
|
3064
|
+
:param agent_collaborators: List of Agent Collaborators.
|
|
2493
3065
|
:param agent_resource_role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
|
2494
3066
|
:param auto_prepare: Specifies whether to automatically update the ``DRAFT`` version of the agent after making changes to the agent. The ``DRAFT`` version can be continually iterated upon during internal development. By default, this value is ``false`` . Default: - false
|
|
2495
3067
|
:param customer_encryption_key_arn: The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.
|
|
3068
|
+
:param custom_orchestration: Contains custom orchestration configurations for the agent.
|
|
2496
3069
|
:param description: The description of the agent.
|
|
2497
3070
|
:param foundation_model: The foundation model used for orchestration by the agent.
|
|
2498
3071
|
:param guardrail_configuration: Details about the guardrail associated with the agent.
|
|
2499
3072
|
:param idle_session_ttl_in_seconds: The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
|
|
2500
3073
|
:param instruction: Instructions that tell the agent what it should do and how it should interact with users.
|
|
2501
3074
|
:param knowledge_bases: The knowledge bases associated with the agent.
|
|
3075
|
+
:param memory_configuration: Contains memory configuration for the agent.
|
|
3076
|
+
:param orchestration_type: Specifies the orchestration strategy for the agent.
|
|
2502
3077
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
2503
3078
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
2504
3079
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
@@ -2555,9 +3130,25 @@ class CfnAgentProps:
|
|
|
2555
3130
|
parent_action_group_signature="parentActionGroupSignature",
|
|
2556
3131
|
skip_resource_in_use_check_on_delete=False
|
|
2557
3132
|
)],
|
|
3133
|
+
agent_collaboration="agentCollaboration",
|
|
3134
|
+
agent_collaborators=[bedrock.CfnAgent.AgentCollaboratorProperty(
|
|
3135
|
+
agent_descriptor=bedrock.CfnAgent.AgentDescriptorProperty(
|
|
3136
|
+
alias_arn="aliasArn"
|
|
3137
|
+
),
|
|
3138
|
+
collaboration_instruction="collaborationInstruction",
|
|
3139
|
+
collaborator_name="collaboratorName",
|
|
3140
|
+
|
|
3141
|
+
# the properties below are optional
|
|
3142
|
+
relay_conversation_history="relayConversationHistory"
|
|
3143
|
+
)],
|
|
2558
3144
|
agent_resource_role_arn="agentResourceRoleArn",
|
|
2559
3145
|
auto_prepare=False,
|
|
2560
3146
|
customer_encryption_key_arn="customerEncryptionKeyArn",
|
|
3147
|
+
custom_orchestration=bedrock.CfnAgent.CustomOrchestrationProperty(
|
|
3148
|
+
executor=bedrock.CfnAgent.OrchestrationExecutorProperty(
|
|
3149
|
+
lambda_="lambda"
|
|
3150
|
+
)
|
|
3151
|
+
),
|
|
2561
3152
|
description="description",
|
|
2562
3153
|
foundation_model="foundationModel",
|
|
2563
3154
|
guardrail_configuration=bedrock.CfnAgent.GuardrailConfigurationProperty(
|
|
@@ -2573,9 +3164,18 @@ class CfnAgentProps:
|
|
|
2573
3164
|
# the properties below are optional
|
|
2574
3165
|
knowledge_base_state="knowledgeBaseState"
|
|
2575
3166
|
)],
|
|
3167
|
+
memory_configuration=bedrock.CfnAgent.MemoryConfigurationProperty(
|
|
3168
|
+
enabled_memory_types=["enabledMemoryTypes"],
|
|
3169
|
+
session_summary_configuration=bedrock.CfnAgent.SessionSummaryConfigurationProperty(
|
|
3170
|
+
max_recent_sessions=123
|
|
3171
|
+
),
|
|
3172
|
+
storage_days=123
|
|
3173
|
+
),
|
|
3174
|
+
orchestration_type="orchestrationType",
|
|
2576
3175
|
prompt_override_configuration=bedrock.CfnAgent.PromptOverrideConfigurationProperty(
|
|
2577
3176
|
prompt_configurations=[bedrock.CfnAgent.PromptConfigurationProperty(
|
|
2578
3177
|
base_prompt_template="basePromptTemplate",
|
|
3178
|
+
foundation_model="foundationModel",
|
|
2579
3179
|
inference_configuration=bedrock.CfnAgent.InferenceConfigurationProperty(
|
|
2580
3180
|
maximum_length=123,
|
|
2581
3181
|
stop_sequences=["stopSequences"],
|
|
@@ -2605,15 +3205,20 @@ class CfnAgentProps:
|
|
|
2605
3205
|
type_hints = typing.get_type_hints(_typecheckingstub__b4f714080f6d4f9b0a3fe85a8425a8ba69698695e35d6fbd9d710ca5d99ba6e8)
|
|
2606
3206
|
check_type(argname="argument agent_name", value=agent_name, expected_type=type_hints["agent_name"])
|
|
2607
3207
|
check_type(argname="argument action_groups", value=action_groups, expected_type=type_hints["action_groups"])
|
|
3208
|
+
check_type(argname="argument agent_collaboration", value=agent_collaboration, expected_type=type_hints["agent_collaboration"])
|
|
3209
|
+
check_type(argname="argument agent_collaborators", value=agent_collaborators, expected_type=type_hints["agent_collaborators"])
|
|
2608
3210
|
check_type(argname="argument agent_resource_role_arn", value=agent_resource_role_arn, expected_type=type_hints["agent_resource_role_arn"])
|
|
2609
3211
|
check_type(argname="argument auto_prepare", value=auto_prepare, expected_type=type_hints["auto_prepare"])
|
|
2610
3212
|
check_type(argname="argument customer_encryption_key_arn", value=customer_encryption_key_arn, expected_type=type_hints["customer_encryption_key_arn"])
|
|
3213
|
+
check_type(argname="argument custom_orchestration", value=custom_orchestration, expected_type=type_hints["custom_orchestration"])
|
|
2611
3214
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
2612
3215
|
check_type(argname="argument foundation_model", value=foundation_model, expected_type=type_hints["foundation_model"])
|
|
2613
3216
|
check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
|
|
2614
3217
|
check_type(argname="argument idle_session_ttl_in_seconds", value=idle_session_ttl_in_seconds, expected_type=type_hints["idle_session_ttl_in_seconds"])
|
|
2615
3218
|
check_type(argname="argument instruction", value=instruction, expected_type=type_hints["instruction"])
|
|
2616
3219
|
check_type(argname="argument knowledge_bases", value=knowledge_bases, expected_type=type_hints["knowledge_bases"])
|
|
3220
|
+
check_type(argname="argument memory_configuration", value=memory_configuration, expected_type=type_hints["memory_configuration"])
|
|
3221
|
+
check_type(argname="argument orchestration_type", value=orchestration_type, expected_type=type_hints["orchestration_type"])
|
|
2617
3222
|
check_type(argname="argument prompt_override_configuration", value=prompt_override_configuration, expected_type=type_hints["prompt_override_configuration"])
|
|
2618
3223
|
check_type(argname="argument skip_resource_in_use_check_on_delete", value=skip_resource_in_use_check_on_delete, expected_type=type_hints["skip_resource_in_use_check_on_delete"])
|
|
2619
3224
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
@@ -2623,12 +3228,18 @@ class CfnAgentProps:
|
|
|
2623
3228
|
}
|
|
2624
3229
|
if action_groups is not None:
|
|
2625
3230
|
self._values["action_groups"] = action_groups
|
|
3231
|
+
if agent_collaboration is not None:
|
|
3232
|
+
self._values["agent_collaboration"] = agent_collaboration
|
|
3233
|
+
if agent_collaborators is not None:
|
|
3234
|
+
self._values["agent_collaborators"] = agent_collaborators
|
|
2626
3235
|
if agent_resource_role_arn is not None:
|
|
2627
3236
|
self._values["agent_resource_role_arn"] = agent_resource_role_arn
|
|
2628
3237
|
if auto_prepare is not None:
|
|
2629
3238
|
self._values["auto_prepare"] = auto_prepare
|
|
2630
3239
|
if customer_encryption_key_arn is not None:
|
|
2631
3240
|
self._values["customer_encryption_key_arn"] = customer_encryption_key_arn
|
|
3241
|
+
if custom_orchestration is not None:
|
|
3242
|
+
self._values["custom_orchestration"] = custom_orchestration
|
|
2632
3243
|
if description is not None:
|
|
2633
3244
|
self._values["description"] = description
|
|
2634
3245
|
if foundation_model is not None:
|
|
@@ -2641,6 +3252,10 @@ class CfnAgentProps:
|
|
|
2641
3252
|
self._values["instruction"] = instruction
|
|
2642
3253
|
if knowledge_bases is not None:
|
|
2643
3254
|
self._values["knowledge_bases"] = knowledge_bases
|
|
3255
|
+
if memory_configuration is not None:
|
|
3256
|
+
self._values["memory_configuration"] = memory_configuration
|
|
3257
|
+
if orchestration_type is not None:
|
|
3258
|
+
self._values["orchestration_type"] = orchestration_type
|
|
2644
3259
|
if prompt_override_configuration is not None:
|
|
2645
3260
|
self._values["prompt_override_configuration"] = prompt_override_configuration
|
|
2646
3261
|
if skip_resource_in_use_check_on_delete is not None:
|
|
@@ -2671,6 +3286,26 @@ class CfnAgentProps:
|
|
|
2671
3286
|
result = self._values.get("action_groups")
|
|
2672
3287
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAgent.AgentActionGroupProperty]]]], result)
|
|
2673
3288
|
|
|
3289
|
+
@builtins.property
|
|
3290
|
+
def agent_collaboration(self) -> typing.Optional[builtins.str]:
|
|
3291
|
+
'''The agent's collaboration settings.
|
|
3292
|
+
|
|
3293
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-agentcollaboration
|
|
3294
|
+
'''
|
|
3295
|
+
result = self._values.get("agent_collaboration")
|
|
3296
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3297
|
+
|
|
3298
|
+
@builtins.property
|
|
3299
|
+
def agent_collaborators(
|
|
3300
|
+
self,
|
|
3301
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAgent.AgentCollaboratorProperty]]]]:
|
|
3302
|
+
'''List of Agent Collaborators.
|
|
3303
|
+
|
|
3304
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-agentcollaborators
|
|
3305
|
+
'''
|
|
3306
|
+
result = self._values.get("agent_collaborators")
|
|
3307
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAgent.AgentCollaboratorProperty]]]], result)
|
|
3308
|
+
|
|
2674
3309
|
@builtins.property
|
|
2675
3310
|
def agent_resource_role_arn(self) -> typing.Optional[builtins.str]:
|
|
2676
3311
|
'''The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
|
@@ -2704,6 +3339,17 @@ class CfnAgentProps:
|
|
|
2704
3339
|
result = self._values.get("customer_encryption_key_arn")
|
|
2705
3340
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2706
3341
|
|
|
3342
|
+
@builtins.property
|
|
3343
|
+
def custom_orchestration(
|
|
3344
|
+
self,
|
|
3345
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.CustomOrchestrationProperty]]:
|
|
3346
|
+
'''Contains custom orchestration configurations for the agent.
|
|
3347
|
+
|
|
3348
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-customorchestration
|
|
3349
|
+
'''
|
|
3350
|
+
result = self._values.get("custom_orchestration")
|
|
3351
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.CustomOrchestrationProperty]], result)
|
|
3352
|
+
|
|
2707
3353
|
@builtins.property
|
|
2708
3354
|
def description(self) -> typing.Optional[builtins.str]:
|
|
2709
3355
|
'''The description of the agent.
|
|
@@ -2764,6 +3410,26 @@ class CfnAgentProps:
|
|
|
2764
3410
|
result = self._values.get("knowledge_bases")
|
|
2765
3411
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAgent.AgentKnowledgeBaseProperty]]]], result)
|
|
2766
3412
|
|
|
3413
|
+
@builtins.property
|
|
3414
|
+
def memory_configuration(
|
|
3415
|
+
self,
|
|
3416
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.MemoryConfigurationProperty]]:
|
|
3417
|
+
'''Contains memory configuration for the agent.
|
|
3418
|
+
|
|
3419
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-memoryconfiguration
|
|
3420
|
+
'''
|
|
3421
|
+
result = self._values.get("memory_configuration")
|
|
3422
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.MemoryConfigurationProperty]], result)
|
|
3423
|
+
|
|
3424
|
+
@builtins.property
|
|
3425
|
+
def orchestration_type(self) -> typing.Optional[builtins.str]:
|
|
3426
|
+
'''Specifies the orchestration strategy for the agent.
|
|
3427
|
+
|
|
3428
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-orchestrationtype
|
|
3429
|
+
'''
|
|
3430
|
+
result = self._values.get("orchestration_type")
|
|
3431
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3432
|
+
|
|
2767
3433
|
@builtins.property
|
|
2768
3434
|
def prompt_override_configuration(
|
|
2769
3435
|
self,
|
|
@@ -3800,9 +4466,9 @@ class CfnDataSource(
|
|
|
3800
4466
|
parsing_modality: typing.Optional[builtins.str] = None,
|
|
3801
4467
|
parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ParsingPromptProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3802
4468
|
) -> None:
|
|
3803
|
-
'''Settings for a foundation model
|
|
4469
|
+
'''Settings for a foundation model used to parse documents for a data source.
|
|
3804
4470
|
|
|
3805
|
-
:param model_arn: The ARN of the foundation model
|
|
4471
|
+
:param model_arn: The ARN of the foundation model to use for parsing.
|
|
3806
4472
|
:param parsing_modality: Specifies whether to enable parsing of multimodal data, including both text and/or images.
|
|
3807
4473
|
:param parsing_prompt: Instructions for interpreting the contents of a document.
|
|
3808
4474
|
|
|
@@ -3840,7 +4506,7 @@ class CfnDataSource(
|
|
|
3840
4506
|
|
|
3841
4507
|
@builtins.property
|
|
3842
4508
|
def model_arn(self) -> builtins.str:
|
|
3843
|
-
'''The ARN of the foundation model
|
|
4509
|
+
'''The ARN of the foundation model to use for parsing.
|
|
3844
4510
|
|
|
3845
4511
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-modelarn
|
|
3846
4512
|
'''
|
|
@@ -19949,7 +20615,7 @@ class CfnKnowledgeBase(
|
|
|
19949
20615
|
) -> None:
|
|
19950
20616
|
'''Contains details about the model used to create vector embeddings for the knowledge base.
|
|
19951
20617
|
|
|
19952
|
-
:param embedding_model_arn: The Amazon Resource Name (ARN) of the model
|
|
20618
|
+
:param embedding_model_arn: The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
19953
20619
|
:param embedding_model_configuration: The embeddings model configuration details for the vector model used in Knowledge Base.
|
|
19954
20620
|
:param supplemental_data_storage_configuration: If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents. These images can be retrieved and returned to the end user. They can also be used in generation when using `RetrieveAndGenerate <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html>`_ .
|
|
19955
20621
|
|
|
@@ -19999,7 +20665,7 @@ class CfnKnowledgeBase(
|
|
|
19999
20665
|
|
|
20000
20666
|
@builtins.property
|
|
20001
20667
|
def embedding_model_arn(self) -> builtins.str:
|
|
20002
|
-
'''The Amazon Resource Name (ARN) of the model
|
|
20668
|
+
'''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
20003
20669
|
|
|
20004
20670
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
|
|
20005
20671
|
'''
|
|
@@ -20342,6 +21008,7 @@ class CfnPrompt(
|
|
|
20342
21008
|
# The values are placeholders you should change.
|
|
20343
21009
|
from aws_cdk import aws_bedrock as bedrock
|
|
20344
21010
|
|
|
21011
|
+
# additional_model_request_fields: Any
|
|
20345
21012
|
# any: Any
|
|
20346
21013
|
# auto: Any
|
|
20347
21014
|
# json: Any
|
|
@@ -20362,6 +21029,9 @@ class CfnPrompt(
|
|
|
20362
21029
|
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
20363
21030
|
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
20364
21031
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
21032
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21033
|
+
type="type"
|
|
21034
|
+
),
|
|
20365
21035
|
text="text"
|
|
20366
21036
|
)],
|
|
20367
21037
|
role="role"
|
|
@@ -20372,10 +21042,16 @@ class CfnPrompt(
|
|
|
20372
21042
|
name="name"
|
|
20373
21043
|
)],
|
|
20374
21044
|
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
21045
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21046
|
+
type="type"
|
|
21047
|
+
),
|
|
20375
21048
|
text="text"
|
|
20376
21049
|
)],
|
|
20377
21050
|
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
20378
21051
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
21052
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21053
|
+
type="type"
|
|
21054
|
+
),
|
|
20379
21055
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20380
21056
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20381
21057
|
json=json
|
|
@@ -20398,6 +21074,9 @@ class CfnPrompt(
|
|
|
20398
21074
|
)
|
|
20399
21075
|
),
|
|
20400
21076
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
21077
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21078
|
+
type="type"
|
|
21079
|
+
),
|
|
20401
21080
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
20402
21081
|
name="name"
|
|
20403
21082
|
)],
|
|
@@ -20414,6 +21093,7 @@ class CfnPrompt(
|
|
|
20414
21093
|
template_type="templateType",
|
|
20415
21094
|
|
|
20416
21095
|
# the properties below are optional
|
|
21096
|
+
additional_model_request_fields=additional_model_request_fields,
|
|
20417
21097
|
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
20418
21098
|
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
20419
21099
|
agent_identifier="agentIdentifier"
|
|
@@ -20644,6 +21324,60 @@ class CfnPrompt(
|
|
|
20644
21324
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
20645
21325
|
jsii.set(self, "variants", value) # pyright: ignore[reportArgumentType]
|
|
20646
21326
|
|
|
21327
|
+
@jsii.data_type(
|
|
21328
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.CachePointBlockProperty",
|
|
21329
|
+
jsii_struct_bases=[],
|
|
21330
|
+
name_mapping={"type": "type"},
|
|
21331
|
+
)
|
|
21332
|
+
class CachePointBlockProperty:
|
|
21333
|
+
def __init__(self, *, type: builtins.str) -> None:
|
|
21334
|
+
'''Indicates where a cache checkpoint is located.
|
|
21335
|
+
|
|
21336
|
+
All information before this checkpoint is cached to be accessed on subsequent requests.
|
|
21337
|
+
|
|
21338
|
+
:param type: Indicates that the CachePointBlock is of the default type.
|
|
21339
|
+
|
|
21340
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html
|
|
21341
|
+
:exampleMetadata: fixture=_generated
|
|
21342
|
+
|
|
21343
|
+
Example::
|
|
21344
|
+
|
|
21345
|
+
# The code below shows an example of how to instantiate this type.
|
|
21346
|
+
# The values are placeholders you should change.
|
|
21347
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
21348
|
+
|
|
21349
|
+
cache_point_block_property = bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21350
|
+
type="type"
|
|
21351
|
+
)
|
|
21352
|
+
'''
|
|
21353
|
+
if __debug__:
|
|
21354
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bd50cf8beba9be3087e745b65b15d91f37347526c9a4f8f4cb158f627e746a25)
|
|
21355
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
21356
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21357
|
+
"type": type,
|
|
21358
|
+
}
|
|
21359
|
+
|
|
21360
|
+
@builtins.property
|
|
21361
|
+
def type(self) -> builtins.str:
|
|
21362
|
+
'''Indicates that the CachePointBlock is of the default type.
|
|
21363
|
+
|
|
21364
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html#cfn-bedrock-prompt-cachepointblock-type
|
|
21365
|
+
'''
|
|
21366
|
+
result = self._values.get("type")
|
|
21367
|
+
assert result is not None, "Required property 'type' is missing"
|
|
21368
|
+
return typing.cast(builtins.str, result)
|
|
21369
|
+
|
|
21370
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
21371
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
21372
|
+
|
|
21373
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
21374
|
+
return not (rhs == self)
|
|
21375
|
+
|
|
21376
|
+
def __repr__(self) -> str:
|
|
21377
|
+
return "CachePointBlockProperty(%s)" % ", ".join(
|
|
21378
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
21379
|
+
)
|
|
21380
|
+
|
|
20647
21381
|
@jsii.data_type(
|
|
20648
21382
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty",
|
|
20649
21383
|
jsii_struct_bases=[],
|
|
@@ -20688,6 +21422,9 @@ class CfnPrompt(
|
|
|
20688
21422
|
chat_prompt_template_configuration_property = bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
20689
21423
|
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
20690
21424
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
21425
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21426
|
+
type="type"
|
|
21427
|
+
),
|
|
20691
21428
|
text="text"
|
|
20692
21429
|
)],
|
|
20693
21430
|
role="role"
|
|
@@ -20698,10 +21435,16 @@ class CfnPrompt(
|
|
|
20698
21435
|
name="name"
|
|
20699
21436
|
)],
|
|
20700
21437
|
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
21438
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21439
|
+
type="type"
|
|
21440
|
+
),
|
|
20701
21441
|
text="text"
|
|
20702
21442
|
)],
|
|
20703
21443
|
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
20704
21444
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
21445
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21446
|
+
type="type"
|
|
21447
|
+
),
|
|
20705
21448
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20706
21449
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20707
21450
|
json=json
|
|
@@ -20799,12 +21542,18 @@ class CfnPrompt(
|
|
|
20799
21542
|
@jsii.data_type(
|
|
20800
21543
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ContentBlockProperty",
|
|
20801
21544
|
jsii_struct_bases=[],
|
|
20802
|
-
name_mapping={"text": "text"},
|
|
21545
|
+
name_mapping={"cache_point": "cachePoint", "text": "text"},
|
|
20803
21546
|
)
|
|
20804
21547
|
class ContentBlockProperty:
|
|
20805
|
-
def __init__(
|
|
21548
|
+
def __init__(
|
|
21549
|
+
self,
|
|
21550
|
+
*,
|
|
21551
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21552
|
+
text: typing.Optional[builtins.str] = None,
|
|
21553
|
+
) -> None:
|
|
20806
21554
|
'''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
|
|
20807
21555
|
|
|
21556
|
+
:param cache_point: Creates a cache checkpoint within a message.
|
|
20808
21557
|
:param text: Text to include in the message.
|
|
20809
21558
|
|
|
20810
21559
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html
|
|
@@ -20817,25 +21566,41 @@ class CfnPrompt(
|
|
|
20817
21566
|
from aws_cdk import aws_bedrock as bedrock
|
|
20818
21567
|
|
|
20819
21568
|
content_block_property = bedrock.CfnPrompt.ContentBlockProperty(
|
|
21569
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21570
|
+
type="type"
|
|
21571
|
+
),
|
|
20820
21572
|
text="text"
|
|
20821
21573
|
)
|
|
20822
21574
|
'''
|
|
20823
21575
|
if __debug__:
|
|
20824
21576
|
type_hints = typing.get_type_hints(_typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6)
|
|
21577
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
20825
21578
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
20826
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20827
|
-
|
|
20828
|
-
|
|
21579
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
21580
|
+
if cache_point is not None:
|
|
21581
|
+
self._values["cache_point"] = cache_point
|
|
21582
|
+
if text is not None:
|
|
21583
|
+
self._values["text"] = text
|
|
20829
21584
|
|
|
20830
21585
|
@builtins.property
|
|
20831
|
-
def
|
|
21586
|
+
def cache_point(
|
|
21587
|
+
self,
|
|
21588
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
21589
|
+
'''Creates a cache checkpoint within a message.
|
|
21590
|
+
|
|
21591
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-cachepoint
|
|
21592
|
+
'''
|
|
21593
|
+
result = self._values.get("cache_point")
|
|
21594
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
|
|
21595
|
+
|
|
21596
|
+
@builtins.property
|
|
21597
|
+
def text(self) -> typing.Optional[builtins.str]:
|
|
20832
21598
|
'''Text to include in the message.
|
|
20833
21599
|
|
|
20834
21600
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-text
|
|
20835
21601
|
'''
|
|
20836
21602
|
result = self._values.get("text")
|
|
20837
|
-
|
|
20838
|
-
return typing.cast(builtins.str, result)
|
|
21603
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20839
21604
|
|
|
20840
21605
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20841
21606
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -20876,6 +21641,9 @@ class CfnPrompt(
|
|
|
20876
21641
|
|
|
20877
21642
|
message_property = bedrock.CfnPrompt.MessageProperty(
|
|
20878
21643
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
21644
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
21645
|
+
type="type"
|
|
21646
|
+
),
|
|
20879
21647
|
text="text"
|
|
20880
21648
|
)],
|
|
20881
21649
|
role="role"
|
|
@@ -21303,6 +22071,9 @@ class CfnPrompt(
|
|
|
21303
22071
|
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
21304
22072
|
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
21305
22073
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
22074
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22075
|
+
type="type"
|
|
22076
|
+
),
|
|
21306
22077
|
text="text"
|
|
21307
22078
|
)],
|
|
21308
22079
|
role="role"
|
|
@@ -21313,10 +22084,16 @@ class CfnPrompt(
|
|
|
21313
22084
|
name="name"
|
|
21314
22085
|
)],
|
|
21315
22086
|
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
22087
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22088
|
+
type="type"
|
|
22089
|
+
),
|
|
21316
22090
|
text="text"
|
|
21317
22091
|
)],
|
|
21318
22092
|
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
21319
22093
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
22094
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22095
|
+
type="type"
|
|
22096
|
+
),
|
|
21320
22097
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
21321
22098
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
21322
22099
|
json=json
|
|
@@ -21339,6 +22116,9 @@ class CfnPrompt(
|
|
|
21339
22116
|
)
|
|
21340
22117
|
),
|
|
21341
22118
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
22119
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22120
|
+
type="type"
|
|
22121
|
+
),
|
|
21342
22122
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
21343
22123
|
name="name"
|
|
21344
22124
|
)],
|
|
@@ -21403,6 +22183,7 @@ class CfnPrompt(
|
|
|
21403
22183
|
"name": "name",
|
|
21404
22184
|
"template_configuration": "templateConfiguration",
|
|
21405
22185
|
"template_type": "templateType",
|
|
22186
|
+
"additional_model_request_fields": "additionalModelRequestFields",
|
|
21406
22187
|
"gen_ai_resource": "genAiResource",
|
|
21407
22188
|
"inference_configuration": "inferenceConfiguration",
|
|
21408
22189
|
"model_id": "modelId",
|
|
@@ -21415,6 +22196,7 @@ class CfnPrompt(
|
|
|
21415
22196
|
name: builtins.str,
|
|
21416
22197
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
21417
22198
|
template_type: builtins.str,
|
|
22199
|
+
additional_model_request_fields: typing.Any = None,
|
|
21418
22200
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21419
22201
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21420
22202
|
model_id: typing.Optional[builtins.str] = None,
|
|
@@ -21424,6 +22206,7 @@ class CfnPrompt(
|
|
|
21424
22206
|
:param name: The name of the prompt variant.
|
|
21425
22207
|
:param template_configuration: Contains configurations for the prompt template.
|
|
21426
22208
|
:param template_type: The type of prompt template to use.
|
|
22209
|
+
:param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
21427
22210
|
:param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
|
|
21428
22211
|
:param inference_configuration: Contains inference configurations for the prompt variant.
|
|
21429
22212
|
:param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
@@ -21437,6 +22220,7 @@ class CfnPrompt(
|
|
|
21437
22220
|
# The values are placeholders you should change.
|
|
21438
22221
|
from aws_cdk import aws_bedrock as bedrock
|
|
21439
22222
|
|
|
22223
|
+
# additional_model_request_fields: Any
|
|
21440
22224
|
# any: Any
|
|
21441
22225
|
# auto: Any
|
|
21442
22226
|
# json: Any
|
|
@@ -21447,6 +22231,9 @@ class CfnPrompt(
|
|
|
21447
22231
|
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
21448
22232
|
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
21449
22233
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
22234
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22235
|
+
type="type"
|
|
22236
|
+
),
|
|
21450
22237
|
text="text"
|
|
21451
22238
|
)],
|
|
21452
22239
|
role="role"
|
|
@@ -21457,10 +22244,16 @@ class CfnPrompt(
|
|
|
21457
22244
|
name="name"
|
|
21458
22245
|
)],
|
|
21459
22246
|
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
22247
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22248
|
+
type="type"
|
|
22249
|
+
),
|
|
21460
22250
|
text="text"
|
|
21461
22251
|
)],
|
|
21462
22252
|
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
21463
22253
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
22254
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22255
|
+
type="type"
|
|
22256
|
+
),
|
|
21464
22257
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
21465
22258
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
21466
22259
|
json=json
|
|
@@ -21483,6 +22276,9 @@ class CfnPrompt(
|
|
|
21483
22276
|
)
|
|
21484
22277
|
),
|
|
21485
22278
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
22279
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22280
|
+
type="type"
|
|
22281
|
+
),
|
|
21486
22282
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
21487
22283
|
name="name"
|
|
21488
22284
|
)],
|
|
@@ -21499,6 +22295,7 @@ class CfnPrompt(
|
|
|
21499
22295
|
template_type="templateType",
|
|
21500
22296
|
|
|
21501
22297
|
# the properties below are optional
|
|
22298
|
+
additional_model_request_fields=additional_model_request_fields,
|
|
21502
22299
|
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
21503
22300
|
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
21504
22301
|
agent_identifier="agentIdentifier"
|
|
@@ -21520,6 +22317,7 @@ class CfnPrompt(
|
|
|
21520
22317
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
21521
22318
|
check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
|
|
21522
22319
|
check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
|
|
22320
|
+
check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
|
|
21523
22321
|
check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
|
|
21524
22322
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
21525
22323
|
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
@@ -21528,6 +22326,8 @@ class CfnPrompt(
|
|
|
21528
22326
|
"template_configuration": template_configuration,
|
|
21529
22327
|
"template_type": template_type,
|
|
21530
22328
|
}
|
|
22329
|
+
if additional_model_request_fields is not None:
|
|
22330
|
+
self._values["additional_model_request_fields"] = additional_model_request_fields
|
|
21531
22331
|
if gen_ai_resource is not None:
|
|
21532
22332
|
self._values["gen_ai_resource"] = gen_ai_resource
|
|
21533
22333
|
if inference_configuration is not None:
|
|
@@ -21567,6 +22367,17 @@ class CfnPrompt(
|
|
|
21567
22367
|
assert result is not None, "Required property 'template_type' is missing"
|
|
21568
22368
|
return typing.cast(builtins.str, result)
|
|
21569
22369
|
|
|
22370
|
+
@builtins.property
|
|
22371
|
+
def additional_model_request_fields(self) -> typing.Any:
|
|
22372
|
+
'''Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field.
|
|
22373
|
+
|
|
22374
|
+
To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
22375
|
+
|
|
22376
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-additionalmodelrequestfields
|
|
22377
|
+
'''
|
|
22378
|
+
result = self._values.get("additional_model_request_fields")
|
|
22379
|
+
return typing.cast(typing.Any, result)
|
|
22380
|
+
|
|
21570
22381
|
@builtins.property
|
|
21571
22382
|
def gen_ai_resource(
|
|
21572
22383
|
self,
|
|
@@ -21669,14 +22480,20 @@ class CfnPrompt(
|
|
|
21669
22480
|
@jsii.data_type(
|
|
21670
22481
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.SystemContentBlockProperty",
|
|
21671
22482
|
jsii_struct_bases=[],
|
|
21672
|
-
name_mapping={"text": "text"},
|
|
22483
|
+
name_mapping={"cache_point": "cachePoint", "text": "text"},
|
|
21673
22484
|
)
|
|
21674
22485
|
class SystemContentBlockProperty:
|
|
21675
|
-
def __init__(
|
|
22486
|
+
def __init__(
|
|
22487
|
+
self,
|
|
22488
|
+
*,
|
|
22489
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22490
|
+
text: typing.Optional[builtins.str] = None,
|
|
22491
|
+
) -> None:
|
|
21676
22492
|
'''Contains configurations for instructions to provide the model for how to handle input.
|
|
21677
22493
|
|
|
21678
22494
|
To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
|
|
21679
22495
|
|
|
22496
|
+
:param cache_point: Creates a cache checkpoint within a tool designation.
|
|
21680
22497
|
:param text: A system prompt for the model.
|
|
21681
22498
|
|
|
21682
22499
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html
|
|
@@ -21689,25 +22506,41 @@ class CfnPrompt(
|
|
|
21689
22506
|
from aws_cdk import aws_bedrock as bedrock
|
|
21690
22507
|
|
|
21691
22508
|
system_content_block_property = bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
22509
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22510
|
+
type="type"
|
|
22511
|
+
),
|
|
21692
22512
|
text="text"
|
|
21693
22513
|
)
|
|
21694
22514
|
'''
|
|
21695
22515
|
if __debug__:
|
|
21696
22516
|
type_hints = typing.get_type_hints(_typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1)
|
|
22517
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
21697
22518
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
21698
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21699
|
-
|
|
21700
|
-
|
|
22519
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
22520
|
+
if cache_point is not None:
|
|
22521
|
+
self._values["cache_point"] = cache_point
|
|
22522
|
+
if text is not None:
|
|
22523
|
+
self._values["text"] = text
|
|
21701
22524
|
|
|
21702
22525
|
@builtins.property
|
|
21703
|
-
def
|
|
22526
|
+
def cache_point(
|
|
22527
|
+
self,
|
|
22528
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
22529
|
+
'''Creates a cache checkpoint within a tool designation.
|
|
22530
|
+
|
|
22531
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-cachepoint
|
|
22532
|
+
'''
|
|
22533
|
+
result = self._values.get("cache_point")
|
|
22534
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
|
|
22535
|
+
|
|
22536
|
+
@builtins.property
|
|
22537
|
+
def text(self) -> typing.Optional[builtins.str]:
|
|
21704
22538
|
'''A system prompt for the model.
|
|
21705
22539
|
|
|
21706
22540
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-text
|
|
21707
22541
|
'''
|
|
21708
22542
|
result = self._values.get("text")
|
|
21709
|
-
|
|
21710
|
-
return typing.cast(builtins.str, result)
|
|
22543
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
21711
22544
|
|
|
21712
22545
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
21713
22546
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -21724,6 +22557,7 @@ class CfnPrompt(
|
|
|
21724
22557
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty",
|
|
21725
22558
|
jsii_struct_bases=[],
|
|
21726
22559
|
name_mapping={
|
|
22560
|
+
"cache_point": "cachePoint",
|
|
21727
22561
|
"input_variables": "inputVariables",
|
|
21728
22562
|
"text": "text",
|
|
21729
22563
|
"text_s3_location": "textS3Location",
|
|
@@ -21733,6 +22567,7 @@ class CfnPrompt(
|
|
|
21733
22567
|
def __init__(
|
|
21734
22568
|
self,
|
|
21735
22569
|
*,
|
|
22570
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21736
22571
|
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInputVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
21737
22572
|
text: typing.Optional[builtins.str] = None,
|
|
21738
22573
|
text_s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.TextS3LocationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -21741,6 +22576,7 @@ class CfnPrompt(
|
|
|
21741
22576
|
|
|
21742
22577
|
To include a variable, enclose a word in double curly braces as in ``{{variable}}`` .
|
|
21743
22578
|
|
|
22579
|
+
:param cache_point: A cache checkpoint within a template configuration.
|
|
21744
22580
|
:param input_variables: An array of the variables in the prompt template.
|
|
21745
22581
|
:param text: The message for the prompt.
|
|
21746
22582
|
:param text_s3_location: The Amazon S3 location of the prompt text.
|
|
@@ -21755,6 +22591,9 @@ class CfnPrompt(
|
|
|
21755
22591
|
from aws_cdk import aws_bedrock as bedrock
|
|
21756
22592
|
|
|
21757
22593
|
text_prompt_template_configuration_property = bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
22594
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22595
|
+
type="type"
|
|
22596
|
+
),
|
|
21758
22597
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
21759
22598
|
name="name"
|
|
21760
22599
|
)],
|
|
@@ -21770,10 +22609,13 @@ class CfnPrompt(
|
|
|
21770
22609
|
'''
|
|
21771
22610
|
if __debug__:
|
|
21772
22611
|
type_hints = typing.get_type_hints(_typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c)
|
|
22612
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
21773
22613
|
check_type(argname="argument input_variables", value=input_variables, expected_type=type_hints["input_variables"])
|
|
21774
22614
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
21775
22615
|
check_type(argname="argument text_s3_location", value=text_s3_location, expected_type=type_hints["text_s3_location"])
|
|
21776
22616
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
22617
|
+
if cache_point is not None:
|
|
22618
|
+
self._values["cache_point"] = cache_point
|
|
21777
22619
|
if input_variables is not None:
|
|
21778
22620
|
self._values["input_variables"] = input_variables
|
|
21779
22621
|
if text is not None:
|
|
@@ -21781,6 +22623,17 @@ class CfnPrompt(
|
|
|
21781
22623
|
if text_s3_location is not None:
|
|
21782
22624
|
self._values["text_s3_location"] = text_s3_location
|
|
21783
22625
|
|
|
22626
|
+
@builtins.property
|
|
22627
|
+
def cache_point(
|
|
22628
|
+
self,
|
|
22629
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
22630
|
+
'''A cache checkpoint within a template configuration.
|
|
22631
|
+
|
|
22632
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-cachepoint
|
|
22633
|
+
'''
|
|
22634
|
+
result = self._values.get("cache_point")
|
|
22635
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
|
|
22636
|
+
|
|
21784
22637
|
@builtins.property
|
|
21785
22638
|
def input_variables(
|
|
21786
22639
|
self,
|
|
@@ -22043,6 +22896,9 @@ class CfnPrompt(
|
|
|
22043
22896
|
|
|
22044
22897
|
tool_configuration_property = bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
22045
22898
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
22899
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
22900
|
+
type="type"
|
|
22901
|
+
),
|
|
22046
22902
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
22047
22903
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
22048
22904
|
json=json
|
|
@@ -22169,18 +23025,20 @@ class CfnPrompt(
|
|
|
22169
23025
|
@jsii.data_type(
|
|
22170
23026
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolProperty",
|
|
22171
23027
|
jsii_struct_bases=[],
|
|
22172
|
-
name_mapping={"tool_spec": "toolSpec"},
|
|
23028
|
+
name_mapping={"cache_point": "cachePoint", "tool_spec": "toolSpec"},
|
|
22173
23029
|
)
|
|
22174
23030
|
class ToolProperty:
|
|
22175
23031
|
def __init__(
|
|
22176
23032
|
self,
|
|
22177
23033
|
*,
|
|
22178
|
-
|
|
23034
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23035
|
+
tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22179
23036
|
) -> None:
|
|
22180
23037
|
'''Information about a tool that you can use with the Converse API.
|
|
22181
23038
|
|
|
22182
23039
|
For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
22183
23040
|
|
|
23041
|
+
:param cache_point: Creates a cache checkpoint within a tool designation.
|
|
22184
23042
|
:param tool_spec: The specfication for the tool.
|
|
22185
23043
|
|
|
22186
23044
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html
|
|
@@ -22195,6 +23053,9 @@ class CfnPrompt(
|
|
|
22195
23053
|
# json: Any
|
|
22196
23054
|
|
|
22197
23055
|
tool_property = bedrock.CfnPrompt.ToolProperty(
|
|
23056
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
23057
|
+
type="type"
|
|
23058
|
+
),
|
|
22198
23059
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
22199
23060
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
22200
23061
|
json=json
|
|
@@ -22208,22 +23069,35 @@ class CfnPrompt(
|
|
|
22208
23069
|
'''
|
|
22209
23070
|
if __debug__:
|
|
22210
23071
|
type_hints = typing.get_type_hints(_typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2)
|
|
23072
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
22211
23073
|
check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
|
|
22212
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22213
|
-
|
|
22214
|
-
|
|
23074
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
23075
|
+
if cache_point is not None:
|
|
23076
|
+
self._values["cache_point"] = cache_point
|
|
23077
|
+
if tool_spec is not None:
|
|
23078
|
+
self._values["tool_spec"] = tool_spec
|
|
23079
|
+
|
|
23080
|
+
@builtins.property
|
|
23081
|
+
def cache_point(
|
|
23082
|
+
self,
|
|
23083
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
23084
|
+
'''Creates a cache checkpoint within a tool designation.
|
|
23085
|
+
|
|
23086
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-cachepoint
|
|
23087
|
+
'''
|
|
23088
|
+
result = self._values.get("cache_point")
|
|
23089
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
|
|
22215
23090
|
|
|
22216
23091
|
@builtins.property
|
|
22217
23092
|
def tool_spec(
|
|
22218
23093
|
self,
|
|
22219
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]:
|
|
23094
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]]:
|
|
22220
23095
|
'''The specfication for the tool.
|
|
22221
23096
|
|
|
22222
23097
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-toolspec
|
|
22223
23098
|
'''
|
|
22224
23099
|
result = self._values.get("tool_spec")
|
|
22225
|
-
|
|
22226
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"], result)
|
|
23100
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]], result)
|
|
22227
23101
|
|
|
22228
23102
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22229
23103
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -22378,6 +23252,7 @@ class CfnPromptProps:
|
|
|
22378
23252
|
# The values are placeholders you should change.
|
|
22379
23253
|
from aws_cdk import aws_bedrock as bedrock
|
|
22380
23254
|
|
|
23255
|
+
# additional_model_request_fields: Any
|
|
22381
23256
|
# any: Any
|
|
22382
23257
|
# auto: Any
|
|
22383
23258
|
# json: Any
|
|
@@ -22398,6 +23273,9 @@ class CfnPromptProps:
|
|
|
22398
23273
|
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
22399
23274
|
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
22400
23275
|
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
23276
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
23277
|
+
type="type"
|
|
23278
|
+
),
|
|
22401
23279
|
text="text"
|
|
22402
23280
|
)],
|
|
22403
23281
|
role="role"
|
|
@@ -22408,10 +23286,16 @@ class CfnPromptProps:
|
|
|
22408
23286
|
name="name"
|
|
22409
23287
|
)],
|
|
22410
23288
|
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
23289
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
23290
|
+
type="type"
|
|
23291
|
+
),
|
|
22411
23292
|
text="text"
|
|
22412
23293
|
)],
|
|
22413
23294
|
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
22414
23295
|
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
23296
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
23297
|
+
type="type"
|
|
23298
|
+
),
|
|
22415
23299
|
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
22416
23300
|
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
22417
23301
|
json=json
|
|
@@ -22434,6 +23318,9 @@ class CfnPromptProps:
|
|
|
22434
23318
|
)
|
|
22435
23319
|
),
|
|
22436
23320
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
23321
|
+
cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
|
|
23322
|
+
type="type"
|
|
23323
|
+
),
|
|
22437
23324
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
22438
23325
|
name="name"
|
|
22439
23326
|
)],
|
|
@@ -22450,6 +23337,7 @@ class CfnPromptProps:
|
|
|
22450
23337
|
template_type="templateType",
|
|
22451
23338
|
|
|
22452
23339
|
# the properties below are optional
|
|
23340
|
+
additional_model_request_fields=additional_model_request_fields,
|
|
22453
23341
|
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
22454
23342
|
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
22455
23343
|
agent_identifier="agentIdentifier"
|
|
@@ -22786,6 +23674,60 @@ class CfnPromptVersion(
|
|
|
22786
23674
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22787
23675
|
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
22788
23676
|
|
|
23677
|
+
@jsii.data_type(
|
|
23678
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.CachePointBlockProperty",
|
|
23679
|
+
jsii_struct_bases=[],
|
|
23680
|
+
name_mapping={"type": "type"},
|
|
23681
|
+
)
|
|
23682
|
+
class CachePointBlockProperty:
|
|
23683
|
+
def __init__(self, *, type: builtins.str) -> None:
|
|
23684
|
+
'''Indicates where a cache checkpoint is located.
|
|
23685
|
+
|
|
23686
|
+
All information before this checkpoint is cached to be accessed on subsequent requests.
|
|
23687
|
+
|
|
23688
|
+
:param type: Indicates that the CachePointBlock is of the default type.
|
|
23689
|
+
|
|
23690
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html
|
|
23691
|
+
:exampleMetadata: fixture=_generated
|
|
23692
|
+
|
|
23693
|
+
Example::
|
|
23694
|
+
|
|
23695
|
+
# The code below shows an example of how to instantiate this type.
|
|
23696
|
+
# The values are placeholders you should change.
|
|
23697
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
23698
|
+
|
|
23699
|
+
cache_point_block_property = bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23700
|
+
type="type"
|
|
23701
|
+
)
|
|
23702
|
+
'''
|
|
23703
|
+
if __debug__:
|
|
23704
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1efc63ac0b88e352df8f8c7f3ee2d701335ff357064dab7bcd43198aebfa0c3a)
|
|
23705
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
23706
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23707
|
+
"type": type,
|
|
23708
|
+
}
|
|
23709
|
+
|
|
23710
|
+
@builtins.property
|
|
23711
|
+
def type(self) -> builtins.str:
|
|
23712
|
+
'''Indicates that the CachePointBlock is of the default type.
|
|
23713
|
+
|
|
23714
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html#cfn-bedrock-promptversion-cachepointblock-type
|
|
23715
|
+
'''
|
|
23716
|
+
result = self._values.get("type")
|
|
23717
|
+
assert result is not None, "Required property 'type' is missing"
|
|
23718
|
+
return typing.cast(builtins.str, result)
|
|
23719
|
+
|
|
23720
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23721
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23722
|
+
|
|
23723
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
23724
|
+
return not (rhs == self)
|
|
23725
|
+
|
|
23726
|
+
def __repr__(self) -> str:
|
|
23727
|
+
return "CachePointBlockProperty(%s)" % ", ".join(
|
|
23728
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
23729
|
+
)
|
|
23730
|
+
|
|
22789
23731
|
@jsii.data_type(
|
|
22790
23732
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty",
|
|
22791
23733
|
jsii_struct_bases=[],
|
|
@@ -22830,6 +23772,9 @@ class CfnPromptVersion(
|
|
|
22830
23772
|
chat_prompt_template_configuration_property = bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
|
|
22831
23773
|
messages=[bedrock.CfnPromptVersion.MessageProperty(
|
|
22832
23774
|
content=[bedrock.CfnPromptVersion.ContentBlockProperty(
|
|
23775
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23776
|
+
type="type"
|
|
23777
|
+
),
|
|
22833
23778
|
text="text"
|
|
22834
23779
|
)],
|
|
22835
23780
|
role="role"
|
|
@@ -22840,10 +23785,16 @@ class CfnPromptVersion(
|
|
|
22840
23785
|
name="name"
|
|
22841
23786
|
)],
|
|
22842
23787
|
system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
|
|
23788
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23789
|
+
type="type"
|
|
23790
|
+
),
|
|
22843
23791
|
text="text"
|
|
22844
23792
|
)],
|
|
22845
23793
|
tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
|
|
22846
23794
|
tools=[bedrock.CfnPromptVersion.ToolProperty(
|
|
23795
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23796
|
+
type="type"
|
|
23797
|
+
),
|
|
22847
23798
|
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
|
|
22848
23799
|
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
|
|
22849
23800
|
json=json
|
|
@@ -22941,12 +23892,18 @@ class CfnPromptVersion(
|
|
|
22941
23892
|
@jsii.data_type(
|
|
22942
23893
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ContentBlockProperty",
|
|
22943
23894
|
jsii_struct_bases=[],
|
|
22944
|
-
name_mapping={"text": "text"},
|
|
23895
|
+
name_mapping={"cache_point": "cachePoint", "text": "text"},
|
|
22945
23896
|
)
|
|
22946
23897
|
class ContentBlockProperty:
|
|
22947
|
-
def __init__(
|
|
23898
|
+
def __init__(
|
|
23899
|
+
self,
|
|
23900
|
+
*,
|
|
23901
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23902
|
+
text: typing.Optional[builtins.str] = None,
|
|
23903
|
+
) -> None:
|
|
22948
23904
|
'''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
|
|
22949
23905
|
|
|
23906
|
+
:param cache_point: Creates a cache checkpoint within a message.
|
|
22950
23907
|
:param text: Text to include in the message.
|
|
22951
23908
|
|
|
22952
23909
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html
|
|
@@ -22959,25 +23916,41 @@ class CfnPromptVersion(
|
|
|
22959
23916
|
from aws_cdk import aws_bedrock as bedrock
|
|
22960
23917
|
|
|
22961
23918
|
content_block_property = bedrock.CfnPromptVersion.ContentBlockProperty(
|
|
23919
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23920
|
+
type="type"
|
|
23921
|
+
),
|
|
22962
23922
|
text="text"
|
|
22963
23923
|
)
|
|
22964
23924
|
'''
|
|
22965
23925
|
if __debug__:
|
|
22966
23926
|
type_hints = typing.get_type_hints(_typecheckingstub__f8b7a5db3e6c4348c44c9b98b76a4988d8fd2d9c411c79a6421043a940b9b3e1)
|
|
23927
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
22967
23928
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
22968
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22969
|
-
|
|
22970
|
-
|
|
23929
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
23930
|
+
if cache_point is not None:
|
|
23931
|
+
self._values["cache_point"] = cache_point
|
|
23932
|
+
if text is not None:
|
|
23933
|
+
self._values["text"] = text
|
|
22971
23934
|
|
|
22972
23935
|
@builtins.property
|
|
22973
|
-
def
|
|
23936
|
+
def cache_point(
|
|
23937
|
+
self,
|
|
23938
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
23939
|
+
'''Creates a cache checkpoint within a message.
|
|
23940
|
+
|
|
23941
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html#cfn-bedrock-promptversion-contentblock-cachepoint
|
|
23942
|
+
'''
|
|
23943
|
+
result = self._values.get("cache_point")
|
|
23944
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
|
|
23945
|
+
|
|
23946
|
+
@builtins.property
|
|
23947
|
+
def text(self) -> typing.Optional[builtins.str]:
|
|
22974
23948
|
'''Text to include in the message.
|
|
22975
23949
|
|
|
22976
23950
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html#cfn-bedrock-promptversion-contentblock-text
|
|
22977
23951
|
'''
|
|
22978
23952
|
result = self._values.get("text")
|
|
22979
|
-
|
|
22980
|
-
return typing.cast(builtins.str, result)
|
|
23953
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
22981
23954
|
|
|
22982
23955
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22983
23956
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -23018,6 +23991,9 @@ class CfnPromptVersion(
|
|
|
23018
23991
|
|
|
23019
23992
|
message_property = bedrock.CfnPromptVersion.MessageProperty(
|
|
23020
23993
|
content=[bedrock.CfnPromptVersion.ContentBlockProperty(
|
|
23994
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
23995
|
+
type="type"
|
|
23996
|
+
),
|
|
23021
23997
|
text="text"
|
|
23022
23998
|
)],
|
|
23023
23999
|
role="role"
|
|
@@ -23445,6 +24421,9 @@ class CfnPromptVersion(
|
|
|
23445
24421
|
chat=bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
|
|
23446
24422
|
messages=[bedrock.CfnPromptVersion.MessageProperty(
|
|
23447
24423
|
content=[bedrock.CfnPromptVersion.ContentBlockProperty(
|
|
24424
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24425
|
+
type="type"
|
|
24426
|
+
),
|
|
23448
24427
|
text="text"
|
|
23449
24428
|
)],
|
|
23450
24429
|
role="role"
|
|
@@ -23455,10 +24434,16 @@ class CfnPromptVersion(
|
|
|
23455
24434
|
name="name"
|
|
23456
24435
|
)],
|
|
23457
24436
|
system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
|
|
24437
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24438
|
+
type="type"
|
|
24439
|
+
),
|
|
23458
24440
|
text="text"
|
|
23459
24441
|
)],
|
|
23460
24442
|
tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
|
|
23461
24443
|
tools=[bedrock.CfnPromptVersion.ToolProperty(
|
|
24444
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24445
|
+
type="type"
|
|
24446
|
+
),
|
|
23462
24447
|
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
|
|
23463
24448
|
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
|
|
23464
24449
|
json=json
|
|
@@ -23484,6 +24469,9 @@ class CfnPromptVersion(
|
|
|
23484
24469
|
text="text",
|
|
23485
24470
|
|
|
23486
24471
|
# the properties below are optional
|
|
24472
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24473
|
+
type="type"
|
|
24474
|
+
),
|
|
23487
24475
|
input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
|
|
23488
24476
|
name="name"
|
|
23489
24477
|
)]
|
|
@@ -23540,6 +24528,7 @@ class CfnPromptVersion(
|
|
|
23540
24528
|
"name": "name",
|
|
23541
24529
|
"template_configuration": "templateConfiguration",
|
|
23542
24530
|
"template_type": "templateType",
|
|
24531
|
+
"additional_model_request_fields": "additionalModelRequestFields",
|
|
23543
24532
|
"gen_ai_resource": "genAiResource",
|
|
23544
24533
|
"inference_configuration": "inferenceConfiguration",
|
|
23545
24534
|
"model_id": "modelId",
|
|
@@ -23552,6 +24541,7 @@ class CfnPromptVersion(
|
|
|
23552
24541
|
name: builtins.str,
|
|
23553
24542
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
23554
24543
|
template_type: builtins.str,
|
|
24544
|
+
additional_model_request_fields: typing.Any = None,
|
|
23555
24545
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23556
24546
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23557
24547
|
model_id: typing.Optional[builtins.str] = None,
|
|
@@ -23561,6 +24551,7 @@ class CfnPromptVersion(
|
|
|
23561
24551
|
:param name: The name of the prompt variant.
|
|
23562
24552
|
:param template_configuration: Contains configurations for the prompt template.
|
|
23563
24553
|
:param template_type: The type of prompt template to use.
|
|
24554
|
+
:param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
23564
24555
|
:param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
|
|
23565
24556
|
:param inference_configuration: Contains inference configurations for the prompt variant.
|
|
23566
24557
|
:param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
@@ -23574,6 +24565,7 @@ class CfnPromptVersion(
|
|
|
23574
24565
|
# The values are placeholders you should change.
|
|
23575
24566
|
from aws_cdk import aws_bedrock as bedrock
|
|
23576
24567
|
|
|
24568
|
+
# additional_model_request_fields: Any
|
|
23577
24569
|
# any: Any
|
|
23578
24570
|
# auto: Any
|
|
23579
24571
|
# json: Any
|
|
@@ -23584,6 +24576,9 @@ class CfnPromptVersion(
|
|
|
23584
24576
|
chat=bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
|
|
23585
24577
|
messages=[bedrock.CfnPromptVersion.MessageProperty(
|
|
23586
24578
|
content=[bedrock.CfnPromptVersion.ContentBlockProperty(
|
|
24579
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24580
|
+
type="type"
|
|
24581
|
+
),
|
|
23587
24582
|
text="text"
|
|
23588
24583
|
)],
|
|
23589
24584
|
role="role"
|
|
@@ -23594,10 +24589,16 @@ class CfnPromptVersion(
|
|
|
23594
24589
|
name="name"
|
|
23595
24590
|
)],
|
|
23596
24591
|
system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
|
|
24592
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24593
|
+
type="type"
|
|
24594
|
+
),
|
|
23597
24595
|
text="text"
|
|
23598
24596
|
)],
|
|
23599
24597
|
tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
|
|
23600
24598
|
tools=[bedrock.CfnPromptVersion.ToolProperty(
|
|
24599
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24600
|
+
type="type"
|
|
24601
|
+
),
|
|
23601
24602
|
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
|
|
23602
24603
|
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
|
|
23603
24604
|
json=json
|
|
@@ -23623,6 +24624,9 @@ class CfnPromptVersion(
|
|
|
23623
24624
|
text="text",
|
|
23624
24625
|
|
|
23625
24626
|
# the properties below are optional
|
|
24627
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24628
|
+
type="type"
|
|
24629
|
+
),
|
|
23626
24630
|
input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
|
|
23627
24631
|
name="name"
|
|
23628
24632
|
)]
|
|
@@ -23631,6 +24635,7 @@ class CfnPromptVersion(
|
|
|
23631
24635
|
template_type="templateType",
|
|
23632
24636
|
|
|
23633
24637
|
# the properties below are optional
|
|
24638
|
+
additional_model_request_fields=additional_model_request_fields,
|
|
23634
24639
|
gen_ai_resource=bedrock.CfnPromptVersion.PromptGenAiResourceProperty(
|
|
23635
24640
|
agent=bedrock.CfnPromptVersion.PromptAgentResourceProperty(
|
|
23636
24641
|
agent_identifier="agentIdentifier"
|
|
@@ -23652,6 +24657,7 @@ class CfnPromptVersion(
|
|
|
23652
24657
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
23653
24658
|
check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
|
|
23654
24659
|
check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
|
|
24660
|
+
check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
|
|
23655
24661
|
check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
|
|
23656
24662
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
23657
24663
|
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
@@ -23660,6 +24666,8 @@ class CfnPromptVersion(
|
|
|
23660
24666
|
"template_configuration": template_configuration,
|
|
23661
24667
|
"template_type": template_type,
|
|
23662
24668
|
}
|
|
24669
|
+
if additional_model_request_fields is not None:
|
|
24670
|
+
self._values["additional_model_request_fields"] = additional_model_request_fields
|
|
23663
24671
|
if gen_ai_resource is not None:
|
|
23664
24672
|
self._values["gen_ai_resource"] = gen_ai_resource
|
|
23665
24673
|
if inference_configuration is not None:
|
|
@@ -23699,6 +24707,17 @@ class CfnPromptVersion(
|
|
|
23699
24707
|
assert result is not None, "Required property 'template_type' is missing"
|
|
23700
24708
|
return typing.cast(builtins.str, result)
|
|
23701
24709
|
|
|
24710
|
+
@builtins.property
|
|
24711
|
+
def additional_model_request_fields(self) -> typing.Any:
|
|
24712
|
+
'''Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field.
|
|
24713
|
+
|
|
24714
|
+
To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
24715
|
+
|
|
24716
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-additionalmodelrequestfields
|
|
24717
|
+
'''
|
|
24718
|
+
result = self._values.get("additional_model_request_fields")
|
|
24719
|
+
return typing.cast(typing.Any, result)
|
|
24720
|
+
|
|
23702
24721
|
@builtins.property
|
|
23703
24722
|
def gen_ai_resource(
|
|
23704
24723
|
self,
|
|
@@ -23801,14 +24820,20 @@ class CfnPromptVersion(
|
|
|
23801
24820
|
@jsii.data_type(
|
|
23802
24821
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.SystemContentBlockProperty",
|
|
23803
24822
|
jsii_struct_bases=[],
|
|
23804
|
-
name_mapping={"text": "text"},
|
|
24823
|
+
name_mapping={"cache_point": "cachePoint", "text": "text"},
|
|
23805
24824
|
)
|
|
23806
24825
|
class SystemContentBlockProperty:
|
|
23807
|
-
def __init__(
|
|
24826
|
+
def __init__(
|
|
24827
|
+
self,
|
|
24828
|
+
*,
|
|
24829
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24830
|
+
text: typing.Optional[builtins.str] = None,
|
|
24831
|
+
) -> None:
|
|
23808
24832
|
'''Contains configurations for instructions to provide the model for how to handle input.
|
|
23809
24833
|
|
|
23810
24834
|
To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
|
|
23811
24835
|
|
|
24836
|
+
:param cache_point: Creates a cache checkpoint within a tool designation.
|
|
23812
24837
|
:param text: A system prompt for the model.
|
|
23813
24838
|
|
|
23814
24839
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html
|
|
@@ -23821,25 +24846,41 @@ class CfnPromptVersion(
|
|
|
23821
24846
|
from aws_cdk import aws_bedrock as bedrock
|
|
23822
24847
|
|
|
23823
24848
|
system_content_block_property = bedrock.CfnPromptVersion.SystemContentBlockProperty(
|
|
24849
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24850
|
+
type="type"
|
|
24851
|
+
),
|
|
23824
24852
|
text="text"
|
|
23825
24853
|
)
|
|
23826
24854
|
'''
|
|
23827
24855
|
if __debug__:
|
|
23828
24856
|
type_hints = typing.get_type_hints(_typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce096d4de6)
|
|
24857
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
23829
24858
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
23830
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23831
|
-
|
|
23832
|
-
|
|
24859
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
24860
|
+
if cache_point is not None:
|
|
24861
|
+
self._values["cache_point"] = cache_point
|
|
24862
|
+
if text is not None:
|
|
24863
|
+
self._values["text"] = text
|
|
23833
24864
|
|
|
23834
24865
|
@builtins.property
|
|
23835
|
-
def
|
|
24866
|
+
def cache_point(
|
|
24867
|
+
self,
|
|
24868
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
24869
|
+
'''Creates a cache checkpoint within a tool designation.
|
|
24870
|
+
|
|
24871
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-cachepoint
|
|
24872
|
+
'''
|
|
24873
|
+
result = self._values.get("cache_point")
|
|
24874
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
|
|
24875
|
+
|
|
24876
|
+
@builtins.property
|
|
24877
|
+
def text(self) -> typing.Optional[builtins.str]:
|
|
23836
24878
|
'''A system prompt for the model.
|
|
23837
24879
|
|
|
23838
24880
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-text
|
|
23839
24881
|
'''
|
|
23840
24882
|
result = self._values.get("text")
|
|
23841
|
-
|
|
23842
|
-
return typing.cast(builtins.str, result)
|
|
24883
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
23843
24884
|
|
|
23844
24885
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23845
24886
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -23855,13 +24896,18 @@ class CfnPromptVersion(
|
|
|
23855
24896
|
@jsii.data_type(
|
|
23856
24897
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty",
|
|
23857
24898
|
jsii_struct_bases=[],
|
|
23858
|
-
name_mapping={
|
|
24899
|
+
name_mapping={
|
|
24900
|
+
"text": "text",
|
|
24901
|
+
"cache_point": "cachePoint",
|
|
24902
|
+
"input_variables": "inputVariables",
|
|
24903
|
+
},
|
|
23859
24904
|
)
|
|
23860
24905
|
class TextPromptTemplateConfigurationProperty:
|
|
23861
24906
|
def __init__(
|
|
23862
24907
|
self,
|
|
23863
24908
|
*,
|
|
23864
24909
|
text: builtins.str,
|
|
24910
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23865
24911
|
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInputVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
23866
24912
|
) -> None:
|
|
23867
24913
|
'''Contains configurations for a text prompt template.
|
|
@@ -23869,6 +24915,7 @@ class CfnPromptVersion(
|
|
|
23869
24915
|
To include a variable, enclose a word in double curly braces as in ``{{variable}}`` .
|
|
23870
24916
|
|
|
23871
24917
|
:param text: The message for the prompt.
|
|
24918
|
+
:param cache_point: A cache checkpoint within a template configuration.
|
|
23872
24919
|
:param input_variables: An array of the variables in the prompt template.
|
|
23873
24920
|
|
|
23874
24921
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html
|
|
@@ -23884,6 +24931,9 @@ class CfnPromptVersion(
|
|
|
23884
24931
|
text="text",
|
|
23885
24932
|
|
|
23886
24933
|
# the properties below are optional
|
|
24934
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
24935
|
+
type="type"
|
|
24936
|
+
),
|
|
23887
24937
|
input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
|
|
23888
24938
|
name="name"
|
|
23889
24939
|
)]
|
|
@@ -23892,10 +24942,13 @@ class CfnPromptVersion(
|
|
|
23892
24942
|
if __debug__:
|
|
23893
24943
|
type_hints = typing.get_type_hints(_typecheckingstub__25032bb281ef1c5cb331710a698cf25fca6db4c1dafdfd15992d6cc955163d3e)
|
|
23894
24944
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
24945
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
23895
24946
|
check_type(argname="argument input_variables", value=input_variables, expected_type=type_hints["input_variables"])
|
|
23896
24947
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23897
24948
|
"text": text,
|
|
23898
24949
|
}
|
|
24950
|
+
if cache_point is not None:
|
|
24951
|
+
self._values["cache_point"] = cache_point
|
|
23899
24952
|
if input_variables is not None:
|
|
23900
24953
|
self._values["input_variables"] = input_variables
|
|
23901
24954
|
|
|
@@ -23909,6 +24962,17 @@ class CfnPromptVersion(
|
|
|
23909
24962
|
assert result is not None, "Required property 'text' is missing"
|
|
23910
24963
|
return typing.cast(builtins.str, result)
|
|
23911
24964
|
|
|
24965
|
+
@builtins.property
|
|
24966
|
+
def cache_point(
|
|
24967
|
+
self,
|
|
24968
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
24969
|
+
'''A cache checkpoint within a template configuration.
|
|
24970
|
+
|
|
24971
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-cachepoint
|
|
24972
|
+
'''
|
|
24973
|
+
result = self._values.get("cache_point")
|
|
24974
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
|
|
24975
|
+
|
|
23912
24976
|
@builtins.property
|
|
23913
24977
|
def input_variables(
|
|
23914
24978
|
self,
|
|
@@ -24063,6 +25127,9 @@ class CfnPromptVersion(
|
|
|
24063
25127
|
|
|
24064
25128
|
tool_configuration_property = bedrock.CfnPromptVersion.ToolConfigurationProperty(
|
|
24065
25129
|
tools=[bedrock.CfnPromptVersion.ToolProperty(
|
|
25130
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
25131
|
+
type="type"
|
|
25132
|
+
),
|
|
24066
25133
|
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
|
|
24067
25134
|
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
|
|
24068
25135
|
json=json
|
|
@@ -24189,18 +25256,20 @@ class CfnPromptVersion(
|
|
|
24189
25256
|
@jsii.data_type(
|
|
24190
25257
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ToolProperty",
|
|
24191
25258
|
jsii_struct_bases=[],
|
|
24192
|
-
name_mapping={"tool_spec": "toolSpec"},
|
|
25259
|
+
name_mapping={"cache_point": "cachePoint", "tool_spec": "toolSpec"},
|
|
24193
25260
|
)
|
|
24194
25261
|
class ToolProperty:
|
|
24195
25262
|
def __init__(
|
|
24196
25263
|
self,
|
|
24197
25264
|
*,
|
|
24198
|
-
|
|
25265
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25266
|
+
tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24199
25267
|
) -> None:
|
|
24200
25268
|
'''Information about a tool that you can use with the Converse API.
|
|
24201
25269
|
|
|
24202
25270
|
For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
24203
25271
|
|
|
25272
|
+
:param cache_point: Creates a cache checkpoint within a tool designation.
|
|
24204
25273
|
:param tool_spec: The specfication for the tool.
|
|
24205
25274
|
|
|
24206
25275
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html
|
|
@@ -24215,6 +25284,9 @@ class CfnPromptVersion(
|
|
|
24215
25284
|
# json: Any
|
|
24216
25285
|
|
|
24217
25286
|
tool_property = bedrock.CfnPromptVersion.ToolProperty(
|
|
25287
|
+
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
|
|
25288
|
+
type="type"
|
|
25289
|
+
),
|
|
24218
25290
|
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
|
|
24219
25291
|
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
|
|
24220
25292
|
json=json
|
|
@@ -24228,22 +25300,35 @@ class CfnPromptVersion(
|
|
|
24228
25300
|
'''
|
|
24229
25301
|
if __debug__:
|
|
24230
25302
|
type_hints = typing.get_type_hints(_typecheckingstub__8b6207c58bbfdf4ec7d3d8679ed5bbaaeb484f2568db49a5aa30001495cf7363)
|
|
25303
|
+
check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
|
|
24231
25304
|
check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
|
|
24232
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
24233
|
-
|
|
24234
|
-
|
|
25305
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
25306
|
+
if cache_point is not None:
|
|
25307
|
+
self._values["cache_point"] = cache_point
|
|
25308
|
+
if tool_spec is not None:
|
|
25309
|
+
self._values["tool_spec"] = tool_spec
|
|
25310
|
+
|
|
25311
|
+
@builtins.property
|
|
25312
|
+
def cache_point(
|
|
25313
|
+
self,
|
|
25314
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
25315
|
+
'''Creates a cache checkpoint within a tool designation.
|
|
25316
|
+
|
|
25317
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html#cfn-bedrock-promptversion-tool-cachepoint
|
|
25318
|
+
'''
|
|
25319
|
+
result = self._values.get("cache_point")
|
|
25320
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
|
|
24235
25321
|
|
|
24236
25322
|
@builtins.property
|
|
24237
25323
|
def tool_spec(
|
|
24238
25324
|
self,
|
|
24239
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]:
|
|
25325
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]]:
|
|
24240
25326
|
'''The specfication for the tool.
|
|
24241
25327
|
|
|
24242
25328
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html#cfn-bedrock-promptversion-tool-toolspec
|
|
24243
25329
|
'''
|
|
24244
25330
|
result = self._values.get("tool_spec")
|
|
24245
|
-
|
|
24246
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"], result)
|
|
25331
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]], result)
|
|
24247
25332
|
|
|
24248
25333
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
24249
25334
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -24802,6 +25887,12 @@ class FoundationModelIdentifier(
|
|
|
24802
25887
|
'''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:51k".'''
|
|
24803
25888
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K"))
|
|
24804
25889
|
|
|
25890
|
+
@jsii.python.classproperty
|
|
25891
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0")
|
|
25892
|
+
def ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0(cls) -> "FoundationModelIdentifier":
|
|
25893
|
+
'''Base model "anthropic.claude-3-7-sonnet-20250219-v1:0".'''
|
|
25894
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0"))
|
|
25895
|
+
|
|
24805
25896
|
@jsii.python.classproperty
|
|
24806
25897
|
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0")
|
|
24807
25898
|
def ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -25511,15 +26602,20 @@ def _typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe28
|
|
|
25511
26602
|
*,
|
|
25512
26603
|
agent_name: builtins.str,
|
|
25513
26604
|
action_groups: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentActionGroupProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
26605
|
+
agent_collaboration: typing.Optional[builtins.str] = None,
|
|
26606
|
+
agent_collaborators: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentCollaboratorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
25514
26607
|
agent_resource_role_arn: typing.Optional[builtins.str] = None,
|
|
25515
26608
|
auto_prepare: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
25516
26609
|
customer_encryption_key_arn: typing.Optional[builtins.str] = None,
|
|
26610
|
+
custom_orchestration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.CustomOrchestrationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25517
26611
|
description: typing.Optional[builtins.str] = None,
|
|
25518
26612
|
foundation_model: typing.Optional[builtins.str] = None,
|
|
25519
26613
|
guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25520
26614
|
idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
|
|
25521
26615
|
instruction: typing.Optional[builtins.str] = None,
|
|
25522
26616
|
knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
26617
|
+
memory_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.MemoryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
26618
|
+
orchestration_type: typing.Optional[builtins.str] = None,
|
|
25523
26619
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25524
26620
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
25525
26621
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
@@ -25552,6 +26648,18 @@ def _typecheckingstub__f670733e4a574d57292a648f4a8ad68ef64492d8f6667729aee160997
|
|
|
25552
26648
|
"""Type checking stubs"""
|
|
25553
26649
|
pass
|
|
25554
26650
|
|
|
26651
|
+
def _typecheckingstub__f72731f646fedd7539af4983fabc50f2c79adcf5dcc355889ab876a9fd11ec84(
|
|
26652
|
+
value: typing.Optional[builtins.str],
|
|
26653
|
+
) -> None:
|
|
26654
|
+
"""Type checking stubs"""
|
|
26655
|
+
pass
|
|
26656
|
+
|
|
26657
|
+
def _typecheckingstub__beaf0ac8c454f4f172dbcf09f365797fb7a54df60711cb70b40118abac7f58e6(
|
|
26658
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAgent.AgentCollaboratorProperty]]]],
|
|
26659
|
+
) -> None:
|
|
26660
|
+
"""Type checking stubs"""
|
|
26661
|
+
pass
|
|
26662
|
+
|
|
25555
26663
|
def _typecheckingstub__36b021046f759c8bbfbfb02bceb7d337926c83d3e866d3dcd420bb7819e254ca(
|
|
25556
26664
|
value: typing.Optional[builtins.str],
|
|
25557
26665
|
) -> None:
|
|
@@ -25570,6 +26678,12 @@ def _typecheckingstub__ea763219d3fed10a3841f0a137399ddf8f575abf9b1691273415e66f4
|
|
|
25570
26678
|
"""Type checking stubs"""
|
|
25571
26679
|
pass
|
|
25572
26680
|
|
|
26681
|
+
def _typecheckingstub__7bb692aac81267c6a096be6d5432d60a3b62015a610ff438f037460627f13be6(
|
|
26682
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.CustomOrchestrationProperty]],
|
|
26683
|
+
) -> None:
|
|
26684
|
+
"""Type checking stubs"""
|
|
26685
|
+
pass
|
|
26686
|
+
|
|
25573
26687
|
def _typecheckingstub__0bd6874957339badfe5e02e7733947f3ba0b1fdc8c597003bfe10fc7ff96c537(
|
|
25574
26688
|
value: typing.Optional[builtins.str],
|
|
25575
26689
|
) -> None:
|
|
@@ -25606,6 +26720,18 @@ def _typecheckingstub__8842d93181ada69f14f22e8ff6855e528b858dd0baf705a1ae228b3d9
|
|
|
25606
26720
|
"""Type checking stubs"""
|
|
25607
26721
|
pass
|
|
25608
26722
|
|
|
26723
|
+
def _typecheckingstub__9dcb39dfb48769eecfe69ce4ba13939ca98bab37df34c9552a9c60b22b526b0e(
|
|
26724
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.MemoryConfigurationProperty]],
|
|
26725
|
+
) -> None:
|
|
26726
|
+
"""Type checking stubs"""
|
|
26727
|
+
pass
|
|
26728
|
+
|
|
26729
|
+
def _typecheckingstub__b83053d356c226028b8355aa1c0c7019f211c5e848e3b71a72e98d30697ffe6a(
|
|
26730
|
+
value: typing.Optional[builtins.str],
|
|
26731
|
+
) -> None:
|
|
26732
|
+
"""Type checking stubs"""
|
|
26733
|
+
pass
|
|
26734
|
+
|
|
25609
26735
|
def _typecheckingstub__0d115c78c31e0cc4b4828b953c3afd44f4b9271c4e3aaad46777846216d6e9b8(
|
|
25610
26736
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.PromptOverrideConfigurationProperty]],
|
|
25611
26737
|
) -> None:
|
|
@@ -25660,6 +26786,23 @@ def _typecheckingstub__adb9c2568194cbbe9c081f2a8339eaee9966d82b8c5c5ffbc732275ef
|
|
|
25660
26786
|
"""Type checking stubs"""
|
|
25661
26787
|
pass
|
|
25662
26788
|
|
|
26789
|
+
def _typecheckingstub__5b97ab11870f9ef63341839508203eb703dc88dada2d1e54dee2d5aea5d7c15e(
|
|
26790
|
+
*,
|
|
26791
|
+
agent_descriptor: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentDescriptorProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
26792
|
+
collaboration_instruction: builtins.str,
|
|
26793
|
+
collaborator_name: builtins.str,
|
|
26794
|
+
relay_conversation_history: typing.Optional[builtins.str] = None,
|
|
26795
|
+
) -> None:
|
|
26796
|
+
"""Type checking stubs"""
|
|
26797
|
+
pass
|
|
26798
|
+
|
|
26799
|
+
def _typecheckingstub__de3d75bfeea411f0afb63f871615ea4feea519d794973992b49e0847c868c558(
|
|
26800
|
+
*,
|
|
26801
|
+
alias_arn: typing.Optional[builtins.str] = None,
|
|
26802
|
+
) -> None:
|
|
26803
|
+
"""Type checking stubs"""
|
|
26804
|
+
pass
|
|
26805
|
+
|
|
25663
26806
|
def _typecheckingstub__45f582a007ade3e95453c6c5cd09673a7089ab2673014cc97bc0c1eee1d85391(
|
|
25664
26807
|
*,
|
|
25665
26808
|
description: builtins.str,
|
|
@@ -25669,6 +26812,13 @@ def _typecheckingstub__45f582a007ade3e95453c6c5cd09673a7089ab2673014cc97bc0c1eee
|
|
|
25669
26812
|
"""Type checking stubs"""
|
|
25670
26813
|
pass
|
|
25671
26814
|
|
|
26815
|
+
def _typecheckingstub__e4ae7734d910a065f88411f3aa364ce4517ea8bee41915539d6dffda73fd47dc(
|
|
26816
|
+
*,
|
|
26817
|
+
executor: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.OrchestrationExecutorProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
26818
|
+
) -> None:
|
|
26819
|
+
"""Type checking stubs"""
|
|
26820
|
+
pass
|
|
26821
|
+
|
|
25672
26822
|
def _typecheckingstub__19341a6c1d4ad6e6ceea8110fa1f82a06ec1a28df35e4ccc6cdb16f028b12747(
|
|
25673
26823
|
*,
|
|
25674
26824
|
name: builtins.str,
|
|
@@ -25705,6 +26855,22 @@ def _typecheckingstub__0b8b0e306d1a46c4fdcedd77b9e6caf3ca221fe8133fe3ce29c1e5e77
|
|
|
25705
26855
|
"""Type checking stubs"""
|
|
25706
26856
|
pass
|
|
25707
26857
|
|
|
26858
|
+
def _typecheckingstub__7d96229de78435013ea720d3fc5416b1a58de73df8a7fd00fc563b8fe5255a40(
|
|
26859
|
+
*,
|
|
26860
|
+
enabled_memory_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
26861
|
+
session_summary_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.SessionSummaryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
26862
|
+
storage_days: typing.Optional[jsii.Number] = None,
|
|
26863
|
+
) -> None:
|
|
26864
|
+
"""Type checking stubs"""
|
|
26865
|
+
pass
|
|
26866
|
+
|
|
26867
|
+
def _typecheckingstub__9bcfed5f99644abac9695b68367aa4ad30c588f8cc060125d511ce6cd7b85deb(
|
|
26868
|
+
*,
|
|
26869
|
+
lambda_: builtins.str,
|
|
26870
|
+
) -> None:
|
|
26871
|
+
"""Type checking stubs"""
|
|
26872
|
+
pass
|
|
26873
|
+
|
|
25708
26874
|
def _typecheckingstub__ed93c304b05f6a676428d620999acc5f22bf1cc1920ab4160039feccf941e790(
|
|
25709
26875
|
*,
|
|
25710
26876
|
type: builtins.str,
|
|
@@ -25717,6 +26883,7 @@ def _typecheckingstub__ed93c304b05f6a676428d620999acc5f22bf1cc1920ab4160039feccf
|
|
|
25717
26883
|
def _typecheckingstub__072678823f2b5bb708860fe2f54d37c6a24153ba05ec6c798f1cbb1222e7cd7b(
|
|
25718
26884
|
*,
|
|
25719
26885
|
base_prompt_template: typing.Optional[builtins.str] = None,
|
|
26886
|
+
foundation_model: typing.Optional[builtins.str] = None,
|
|
25720
26887
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.InferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25721
26888
|
parser_mode: typing.Optional[builtins.str] = None,
|
|
25722
26889
|
prompt_creation_mode: typing.Optional[builtins.str] = None,
|
|
@@ -25742,6 +26909,13 @@ def _typecheckingstub__1e9a91ab9025dd36217ed95088c50220259ce51156203914457377004
|
|
|
25742
26909
|
"""Type checking stubs"""
|
|
25743
26910
|
pass
|
|
25744
26911
|
|
|
26912
|
+
def _typecheckingstub__72ecccaf4321d6b2cc729d5095c1fa5192a7db52f5293b6536bc7d335964a1d8(
|
|
26913
|
+
*,
|
|
26914
|
+
max_recent_sessions: typing.Optional[jsii.Number] = None,
|
|
26915
|
+
) -> None:
|
|
26916
|
+
"""Type checking stubs"""
|
|
26917
|
+
pass
|
|
26918
|
+
|
|
25745
26919
|
def _typecheckingstub__9a8230a990c5fac91dc09e3de4211aa6f82fce95537f199a7987ca92f4722ee0(
|
|
25746
26920
|
scope: _constructs_77d1e7e8.Construct,
|
|
25747
26921
|
id: builtins.str,
|
|
@@ -25828,15 +27002,20 @@ def _typecheckingstub__b4f714080f6d4f9b0a3fe85a8425a8ba69698695e35d6fbd9d710ca5d
|
|
|
25828
27002
|
*,
|
|
25829
27003
|
agent_name: builtins.str,
|
|
25830
27004
|
action_groups: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentActionGroupProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
27005
|
+
agent_collaboration: typing.Optional[builtins.str] = None,
|
|
27006
|
+
agent_collaborators: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentCollaboratorProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
25831
27007
|
agent_resource_role_arn: typing.Optional[builtins.str] = None,
|
|
25832
27008
|
auto_prepare: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
25833
27009
|
customer_encryption_key_arn: typing.Optional[builtins.str] = None,
|
|
27010
|
+
custom_orchestration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.CustomOrchestrationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25834
27011
|
description: typing.Optional[builtins.str] = None,
|
|
25835
27012
|
foundation_model: typing.Optional[builtins.str] = None,
|
|
25836
27013
|
guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25837
27014
|
idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
|
|
25838
27015
|
instruction: typing.Optional[builtins.str] = None,
|
|
25839
27016
|
knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
27017
|
+
memory_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.MemoryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27018
|
+
orchestration_type: typing.Optional[builtins.str] = None,
|
|
25840
27019
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25841
27020
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
25842
27021
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
@@ -27692,6 +28871,13 @@ def _typecheckingstub__b92123c0073f901a0741c026473098ec639beea3bd80ea47a9b53798e
|
|
|
27692
28871
|
"""Type checking stubs"""
|
|
27693
28872
|
pass
|
|
27694
28873
|
|
|
28874
|
+
def _typecheckingstub__bd50cf8beba9be3087e745b65b15d91f37347526c9a4f8f4cb158f627e746a25(
|
|
28875
|
+
*,
|
|
28876
|
+
type: builtins.str,
|
|
28877
|
+
) -> None:
|
|
28878
|
+
"""Type checking stubs"""
|
|
28879
|
+
pass
|
|
28880
|
+
|
|
27695
28881
|
def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45077ee55(
|
|
27696
28882
|
*,
|
|
27697
28883
|
messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
@@ -27704,7 +28890,8 @@ def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45
|
|
|
27704
28890
|
|
|
27705
28891
|
def _typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6(
|
|
27706
28892
|
*,
|
|
27707
|
-
|
|
28893
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28894
|
+
text: typing.Optional[builtins.str] = None,
|
|
27708
28895
|
) -> None:
|
|
27709
28896
|
"""Type checking stubs"""
|
|
27710
28897
|
pass
|
|
@@ -27768,6 +28955,7 @@ def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5
|
|
|
27768
28955
|
name: builtins.str,
|
|
27769
28956
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
27770
28957
|
template_type: builtins.str,
|
|
28958
|
+
additional_model_request_fields: typing.Any = None,
|
|
27771
28959
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27772
28960
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27773
28961
|
model_id: typing.Optional[builtins.str] = None,
|
|
@@ -27784,13 +28972,15 @@ def _typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e905230195
|
|
|
27784
28972
|
|
|
27785
28973
|
def _typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1(
|
|
27786
28974
|
*,
|
|
27787
|
-
|
|
28975
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28976
|
+
text: typing.Optional[builtins.str] = None,
|
|
27788
28977
|
) -> None:
|
|
27789
28978
|
"""Type checking stubs"""
|
|
27790
28979
|
pass
|
|
27791
28980
|
|
|
27792
28981
|
def _typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c(
|
|
27793
28982
|
*,
|
|
28983
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27794
28984
|
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
27795
28985
|
text: typing.Optional[builtins.str] = None,
|
|
27796
28986
|
text_s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.TextS3LocationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -27833,7 +29023,8 @@ def _typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d
|
|
|
27833
29023
|
|
|
27834
29024
|
def _typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2(
|
|
27835
29025
|
*,
|
|
27836
|
-
|
|
29026
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29027
|
+
tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27837
29028
|
) -> None:
|
|
27838
29029
|
"""Type checking stubs"""
|
|
27839
29030
|
pass
|
|
@@ -27900,6 +29091,13 @@ def _typecheckingstub__9272c7a9663761c48d9f2dd784a0dea11f8f35dbce40fb938036091fd
|
|
|
27900
29091
|
"""Type checking stubs"""
|
|
27901
29092
|
pass
|
|
27902
29093
|
|
|
29094
|
+
def _typecheckingstub__1efc63ac0b88e352df8f8c7f3ee2d701335ff357064dab7bcd43198aebfa0c3a(
|
|
29095
|
+
*,
|
|
29096
|
+
type: builtins.str,
|
|
29097
|
+
) -> None:
|
|
29098
|
+
"""Type checking stubs"""
|
|
29099
|
+
pass
|
|
29100
|
+
|
|
27903
29101
|
def _typecheckingstub__598634099b1e295d31ca9013374ac58062095f42b7ddeccfe1c1eeab2c6590ee(
|
|
27904
29102
|
*,
|
|
27905
29103
|
messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
@@ -27912,7 +29110,8 @@ def _typecheckingstub__598634099b1e295d31ca9013374ac58062095f42b7ddeccfe1c1eeab2
|
|
|
27912
29110
|
|
|
27913
29111
|
def _typecheckingstub__f8b7a5db3e6c4348c44c9b98b76a4988d8fd2d9c411c79a6421043a940b9b3e1(
|
|
27914
29112
|
*,
|
|
27915
|
-
|
|
29113
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29114
|
+
text: typing.Optional[builtins.str] = None,
|
|
27916
29115
|
) -> None:
|
|
27917
29116
|
"""Type checking stubs"""
|
|
27918
29117
|
pass
|
|
@@ -27976,6 +29175,7 @@ def _typecheckingstub__0527e63017fac779f764e66c7e3ec7544382203f5ff233de501b3fde2
|
|
|
27976
29175
|
name: builtins.str,
|
|
27977
29176
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
27978
29177
|
template_type: builtins.str,
|
|
29178
|
+
additional_model_request_fields: typing.Any = None,
|
|
27979
29179
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27980
29180
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
27981
29181
|
model_id: typing.Optional[builtins.str] = None,
|
|
@@ -27992,7 +29192,8 @@ def _typecheckingstub__9ab09ecd79f1a36a0ca4b3c53ba8d42ff8f7753a9642c89c5716e547d
|
|
|
27992
29192
|
|
|
27993
29193
|
def _typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce096d4de6(
|
|
27994
29194
|
*,
|
|
27995
|
-
|
|
29195
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29196
|
+
text: typing.Optional[builtins.str] = None,
|
|
27996
29197
|
) -> None:
|
|
27997
29198
|
"""Type checking stubs"""
|
|
27998
29199
|
pass
|
|
@@ -28000,6 +29201,7 @@ def _typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce0
|
|
|
28000
29201
|
def _typecheckingstub__25032bb281ef1c5cb331710a698cf25fca6db4c1dafdfd15992d6cc955163d3e(
|
|
28001
29202
|
*,
|
|
28002
29203
|
text: builtins.str,
|
|
29204
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28003
29205
|
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
28004
29206
|
) -> None:
|
|
28005
29207
|
"""Type checking stubs"""
|
|
@@ -28031,7 +29233,8 @@ def _typecheckingstub__1bd602bca74b84c152830a7bedeeeb62692ddadbf74d1de154e81bbfa
|
|
|
28031
29233
|
|
|
28032
29234
|
def _typecheckingstub__8b6207c58bbfdf4ec7d3d8679ed5bbaaeb484f2568db49a5aa30001495cf7363(
|
|
28033
29235
|
*,
|
|
28034
|
-
|
|
29236
|
+
cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29237
|
+
tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28035
29238
|
) -> None:
|
|
28036
29239
|
"""Type checking stubs"""
|
|
28037
29240
|
pass
|