Interface AgenticRuntimeState.Builder

  • Method Details

    • status

      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.

      Parameters:
      status - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      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.

      Parameters:
      status - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      AgenticRuntimeState.Builder errorCode(String errorCode)

      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.

      Parameters:
      errorCode - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      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.

      Parameters:
      errorCode - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorMessage

      AgenticRuntimeState.Builder errorMessage(String errorMessage)

      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.

      Parameters:
      errorMessage - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.