Skip to content

CYBER_REASONING_DENY causes agent failure because the model expects reasoning messages #74

@double16

Description

@double16

What happened?

strands.types.exceptions.EventLoopException: An error occurred (ValidationException) when calling the ConverseStream operation: The model returned the following errors: messages.1.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable `thinking`. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking

How to reproduce

  1. CYBER_REASONING_DENY=(model id here)
  2. Run assessment

How are you running it?

Docker Compose

Provider and Model

No response

Operating System

No response

Python Version

No response

Node Version (if using React UI)

No response

Cyber-AutoAgent Version

No response

Error logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions