1 Answer
- Newest
- Most votes
- Most comments
0
Based on the error message you're receiving, it appears there's a mismatch between the tool configuration format you're using and what's expected by the Amazon Bedrock batch inference service for Claude 3.5 Sonnet.
The error indicates several issues with your tool configuration:
1. Extraneous keys like "input_schema" and "description" are not permitted
2. The tool name "extract_cancer_timeline" is not a valid enum value
3. "function" is not a valid value for the "type" field
4. Required keys "display_height_px" and "display_width_px" are missing
This suggests that the tool configuration format for batch inference with Claude 3.5 Sonnet differs from the standard Claude API format. For batch inference with Amazon Bedrock, you need to structure your input differently.
When formatting your JSONL file for batch inference with Claude 3.5 Sonnet, each record should include:
- A unique "recordId"
- A "modelInput" field that contains the appropriate request format
For tool usage in batch inference, you'll need to adapt your tool configuration to match the expected format. Based on the error message, it appears the tools configuration for batch inference requires:
- Different type values than "function"
- Display dimensions (height and width in pixels)
- No "input_schema" or "description" fields in the format you're currently using
I recommend trying a different tool configuration format that includes the required display dimensions and uses the supported type values. You might also need to check if there are specific enum values allowed for tool names.
Unfortunately, the specific format for tool configurations in batch inference with Claude 3.5 Sonnet isn't explicitly documented in the provided sources. You may need to contact AWS Support for the exact schema required for tool configurations in batch inference scenarios.
Sources
Batch inference general operation error | AWS re:Post
AWS Bedrock Batch Inference Operation Not Allowed | AWS re:Post
Format and upload your batch inference data - Amazon Bedrock
Relevant content
asked 2 years ago
asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
