쿠키 기본 설정 선택

당사는 사이트와 서비스를 제공하는 데 필요한 필수 쿠키 및 유사한 도구를 사용합니다. 고객이 사이트를 어떻게 사용하는지 파악하고 개선할 수 있도록 성능 쿠키를 사용해 익명의 통계를 수집합니다. 필수 쿠키는 비활성화할 수 없지만 '사용자 지정' 또는 ‘거부’를 클릭하여 성능 쿠키를 거부할 수 있습니다.

사용자가 동의하는 경우 AWS와 승인된 제3자도 쿠키를 사용하여 유용한 사이트 기능을 제공하고, 사용자의 기본 설정을 기억하고, 관련 광고를 비롯한 관련 콘텐츠를 표시합니다. 필수가 아닌 모든 쿠키를 수락하거나 거부하려면 ‘수락’ 또는 ‘거부’를 클릭하세요. 더 자세한 내용을 선택하려면 ‘사용자 정의’를 클릭하세요.

Troubleshooting tool calls

포커스 모드
Troubleshooting tool calls - Amazon Nova
이 페이지는 귀하의 언어로 번역되지 않았습니다. 번역 요청

You might see different errors when working with tools and Amazon Nova models. Here are a few examples and tips to help you troubleshoot.

An error occurred (ModelErrorException) when calling the Converse operation: The system encountered an unexpected error during processing. Try your request again.

Validate your inference parameters - Amazon Nova models have more success calling tools when using greedy decoding. To enable greedy decoding, set the top P, top K, and temperature parameters to 1.

inferenceConfig={ "topP": 1, "temperature": 1 } additionalModelRequestFields={"inferenceConfig": {"topK": 1}}

Increase the maximum token count - It is common for tool outputs to require a large token output, ensure that the max tokens set is large enough to accommodate the expected return schema. If the model response is larger than your max token count, it will trigger an exception. You can set the maximum tokens in the inferenceConfig parameter:

inferenceConfig={ "maxTokens": 3000 }

Review the system prompt - To improve the accuracy of tool calling, Amazon Nova uses chain of thought reasoning when calling a tool. You will see this output in the response in <thinking> tags. We do not recommended trying to remove this functionality. Instead, we recommend that you drop the output if you do not need it in your application.

An error occurred (ModelErrorException) when calling the Converse operation: The system encountered an unexpected error during processing. Try your request again.

Validate your inference parameters - Amazon Nova models have more success calling tools when using greedy decoding. To enable greedy decoding, set the top P, top K, and temperature parameters to 1.

inferenceConfig={ "topP": 1, "temperature": 1 } additionalModelRequestFields={"inferenceConfig": {"topK": 1}}

Increase the maximum token count - It is common for tool outputs to require a large token output, ensure that the max tokens set is large enough to accommodate the expected return schema. If the model response is larger than your max token count, it will trigger an exception. You can set the maximum tokens in the inferenceConfig parameter:

inferenceConfig={ "maxTokens": 3000 }

Review the system prompt - To improve the accuracy of tool calling, Amazon Nova uses chain of thought reasoning when calling a tool. You will see this output in the response in <thinking> tags. We do not recommended trying to remove this functionality. Instead, we recommend that you drop the output if you do not need it in your application.

An error occurred (ValidationException) when calling the Converse operation

The passed tool configuration does not comply to the required conventions. Refer to the Converse API spec for specifications for all parameters.

An error occurred (ValidationException) when calling the Converse operation

The passed tool configuration does not comply to the required conventions. Refer to the Converse API spec for specifications for all parameters.

If it looks like tools are being ignored by the model, make sure you're following the correct JSON schema for the tool config:

  • Top level schema must of of type Object

  • Only three fields are supported in top-level Object - type (must be set to 'object'), properties, and required

  • Common unsupported fields at the top level are: $schema, description, title, and additionalProperties

If it looks like tools are being ignored by the model, make sure you're following the correct JSON schema for the tool config:

  • Top level schema must of of type Object

  • Only three fields are supported in top-level Object - type (must be set to 'object'), properties, and required

  • Common unsupported fields at the top level are: $schema, description, title, and additionalProperties

You might receive a successful response from Amazon Nova, but the model does not acknowledge that the needed tool is not present.

Validate your inference parameters - Amazon Nova models have more success calling tools when using greedy decoding. To enable greedy decoding, set the top P, top K, and temperature parameters to 1.

inferenceConfig={ "topP": 1, "temperature": 1 } additionalModelRequestFields={"inferenceConfig": {"topK": 1}}

Review the system prompt - To improve the accuracy of tool calling, Amazon Nova uses chain of thought reasoning when calling a tool. You will see this output in the response in <thinking> tags. We do not recommended trying to remove this functionality. Instead, we recommend that you drop the output if you do not need it in your application.

You might receive a successful response from Amazon Nova, but the model does not acknowledge that the needed tool is not present.

Validate your inference parameters - Amazon Nova models have more success calling tools when using greedy decoding. To enable greedy decoding, set the top P, top K, and temperature parameters to 1.

inferenceConfig={ "topP": 1, "temperature": 1 } additionalModelRequestFields={"inferenceConfig": {"topK": 1}}

Review the system prompt - To improve the accuracy of tool calling, Amazon Nova uses chain of thought reasoning when calling a tool. You will see this output in the response in <thinking> tags. We do not recommended trying to remove this functionality. Instead, we recommend that you drop the output if you do not need it in your application.

프라이버시사이트 이용 약관쿠키 기본 설정
© 2025, Amazon Web Services, Inc. 또는 계열사. All rights reserved.