- Newest
- Most votes
- Most comments
The issue was with the name of action group.
Causing Issue - customer-support-agent.
Correct approach - customerSupportAgent OR CustomerSupportAgent.
Rest all configuration is okay.
It looks like you're experiencing a tool format name error with your Amazon Bedrock Agent. This error occurs when the model is trying to call a tool but isn't formatting the tool name correctly according to the required convention.
For Amazon Bedrock Agents, tool names must follow the format: "httpVerb__actionGroupName__apiName". The error suggests that the Nova Pro model is attempting to call your tool but isn't adhering to this format.
There are a few ways to troubleshoot this issue:
-
Review your system prompt: The model might not be properly instructed on how to format tool calls. You may need to modify your system prompt to explicitly guide the model on the correct format for tool calls.
-
Override default prompts: Since you're using Nova Pro, you might need to override the default prompts to better align with the model's capabilities. Nova models may have different prompting conventions than what Bedrock Agents expect by default.
-
Check tool configuration: Ensure that your action group and API definitions in the Bedrock Agent are correctly configured. The tool names should match the format that the error message is expecting.
-
Enable greedy decoding: If the model is not consistently returning the tool in the expected format, enabling greedy decoding might help produce more deterministic outputs.
-
Validate inference parameters: Make sure the maximum token count is sufficient for the model to complete its response, including the properly formatted tool call.
Your Lambda function looks correctly structured to handle the parameters and functions, but the issue appears to be with how the model is attempting to call these functions rather than with the Lambda implementation itself.
Sources
Troubleshooting tool calls - Amazon Nova
Working with models not yet optimized for Amazon Bedrock Agents - Amazon Bedrock
Bedrock Agents - Powertools for AWS Lambda (TypeScript)
Relevant content
- asked 2 years ago
