cloudformation-coverage-roadmap
cloudformation-coverage-roadmap copied to clipboard
[AWS::Bedrock::Prompt] - [BUG] - ToolInputSchema converting all values in JSON to string, resulting in errors
Name of the resource
AWS::ACMPCA::Certificate
Resource Name
AWS::Bedrock::Prompt
Issue Description
Hello there team,
This is to report a bug in AWS::Bedrock::Prompt resource in CloudFormation.
When provisioning this resource, "ToolInputSchema" -> https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html
which is to be provided in JSON format has values which are boolean, integer, etc., which when deployed, the resource gets created successfully. However, the prompt when viewed from console, shows the JSON block with these integer and boolean values converted into strings.
This results in errors like below:
The model returned the following errors: tools.0.input_schema: JSON schema is invalid - please consult https://json-schema.org or our documentation at https://docs.anthropic.com/en/docs/tool-use
Replicatble template uploaded (please change the account id in Variants/ModelId ReplicableTemplate.yaml.txt
Please rectify this error so that end users can use CFN to provision the resource without any issues.
Also, do provide the ETA for this fix
Expected Behavior
Prompt should parse the JSON in such a way that it retains the data type.
Observed Behavior
the prompt when viewed from console, shows the JSON block with these integer and boolean values converted into strings.
Test Cases
{"additionalProperties": false} (a boolean) becomes... {"additionalProperties": "false"} (a string).
properties like below are being impacted:
- additionalProperties (boolean)
- minItems (number)
- maxItems (number)
Other Details
No response