Skip to content

AgenticRuntimeState

Source code in docs_src/capo_workspaces/types/agentic_runtime_state.py
class AgenticRuntimeState(TypedDict, closed=True):
    status: "capo_workspaces.types.agentic_runtime_status.AgenticRuntimeStatus"
    """<p>The health of the agent. <code>UNKNOWN</code> indicates that the service couldn't determine the agent's health, for example, because the WorkSpace isn't running.</p>"""
    error_code: NotRequired[
        "capo_workspaces.types.agentic_runtime_error_code.AgenticRuntimeErrorCode"
    ]
    """<p>The check or operation that set the agent's health status. This field isn't returned when the health status is <code>AVAILABLE</code>, and might not be returned for other statuses. The service can add values, so make sure that your code handles values that aren't in the list of valid values.</p>"""
    error_message: NotRequired[
        "capo_workspaces.types.agentic_runtime_error_message.AgenticRuntimeErrorMessage"
    ]
    """<p>A description of the agent's health status. This field isn't returned when the health status is <code>AVAILABLE</code>. It's returned for every other status, even when <code>ErrorCode</code> isn't returned.</p>"""

error_code instance-attribute

error_code: NotRequired[AgenticRuntimeErrorCode]

The check or operation that set the agent's health status. This field isn't returned when the health status is AVAILABLE, and might not be returned for other statuses. The service can add values, so make sure that your code handles values that aren't in the list of valid values.

error_message instance-attribute

error_message: NotRequired[AgenticRuntimeErrorMessage]

A description of the agent's health status. This field isn't returned when the health status is AVAILABLE. It's returned for every other status, even when ErrorCode isn't returned.

status instance-attribute

The health of the agent. UNKNOWN indicates that the service couldn't determine the agent's health, for example, because the WorkSpace isn't running.