exo-explore/exo · error · ValueError

{error_message}

Error message

{error_message}

What it means

Error "{error_message}" thrown in exo-explore/exo.

Source

Thrown at src/exo/api/adapters/claude.py:310

                    ClaudeToolUseBlock(
                        id=f"toolu_{tool.id}",
                        name=tool.name,
                        input=json.loads(tool.arguments),  # pyright: ignore[reportAny]
                    )
                )
            stop_reason = "tool_use"
            continue

        if chunk.is_thinking:
            thinking_parts.append(chunk.text)
        else:
            text_parts.append(chunk.text)

        if chunk.finish_reason is not None:
            stop_reason = finish_reason_to_claude_stop_reason(chunk.finish_reason)

    if error_message is not None:
        raise ValueError(error_message)

    combined_text = "".join(text_parts)
    combined_thinking = "".join(thinking_parts)

    # Build content blocks
    content: list[ClaudeContentBlock] = []
    if combined_thinking:
        content.append(ClaudeThinkingBlock(thinking=combined_thinking))
    if combined_text:
        content.append(ClaudeTextBlock(text=combined_text))
    content.extend(tool_use_blocks)

    # If no content at all, include empty text block
    if not content:
        content.append(ClaudeTextBlock(text=""))

    # Use actual usage data if available
    input_tokens = last_usage.prompt_tokens if last_usage else 0

View on GitHub (pinned to 21a54c5ea0)

When it happens

Trigger: Thrown at src/exo/api/adapters/claude.py:310 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of exo-explore/exo@21a54c5ea0 (2026-08-26). Data as JSON: /api/errors/ea0f5b6ccb665654. Report an issue: GitHub.