# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel

__all__ = ["ExecutionRef"]


class ExecutionRef(BaseModel):
    """Execution reference for tracking"""

    id: str
    """Execution log ID"""

    type: Literal["agent_invoke", "tool_call"]
    """Type of execution"""

    url: str
    """URL to fetch the execution log"""

    duration_ms: Optional[float] = None
    """Duration in milliseconds"""

    status: Optional[Literal["success", "error", "timeout"]] = None
    """Execution result status"""
