"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from openrouter.types import BaseModel, Nullable
from typing import Any, Dict, Literal
from typing_extensions import TypedDict


MessagesAdvisorToolResultBlockType = Literal["advisor_tool_result",]


class MessagesAdvisorToolResultBlockTypedDict(TypedDict):
    r"""Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs."""

    content: Dict[str, Nullable[Any]]
    tool_use_id: str
    type: MessagesAdvisorToolResultBlockType


class MessagesAdvisorToolResultBlock(BaseModel):
    r"""Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs."""

    content: Dict[str, Nullable[Any]]

    tool_use_id: str

    type: MessagesAdvisorToolResultBlockType
