microsoft/autogen · error · ValueError

No TaskResult or Response was processed.

Error message

No TaskResult or Response was processed.

What it means

Error "No TaskResult or Response was processed." thrown in microsoft/autogen.

Source

Thrown at python/packages/autogen-ext/src/autogen_ext/ui/_rich_console.py:215

            # Add usage stats if needed
            if message.models_usage:
                if output_stats:
                    text_parts.append(
                        f"[Prompt tokens: {message.models_usage.prompt_tokens}, Completion tokens: {message.models_usage.completion_tokens}]"
                    )
                total_usage.completion_tokens += message.models_usage.completion_tokens
                total_usage.prompt_tokens += message.models_usage.prompt_tokens

            await _aprint_message_content(
                rich_console,
                text_parts,
                image_parts,
                message.source,
                render_image_iterm=render_image_iterm,
            )

    if last_processed is None:
        raise ValueError("No TaskResult or Response was processed.")

    return last_processed


# iTerm2 image rendering protocol: https://iterm2.com/documentation-images.html
def _image_to_iterm(image: Image) -> str:
    image_data = image.to_base64()
    return f"\033]1337;File=inline=1:{image_data}\a\n"

View on GitHub (pinned to 027ecf0a37)

Solutions

  1. Ensure the stream yields a final TaskResult or Response

Example fix

Check the team's run_stream produces a final result

When it happens

Trigger: Thrown at python/packages/autogen-ext/src/autogen_ext/ui/_rich_console.py:215 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/autogen@027ecf0a37 (2026-08-15). Data as JSON: /api/errors/df7135adbbf9de6e. Report an issue: GitHub.