Skip to content

GetTrainingOperationResultOutput

Source code in docs_src/capo_sagemakertrainingsessionruntime/types/get_training_operation_result_output.py
class GetTrainingOperationResultOutput(TypedDict, closed=True):
    status: "capo_sagemakertrainingsessionruntime.types.request_status.RequestStatus"
    """<p>The current status of the operation. Possible values are <code>Pending</code>, <code>InProgress</code>, <code>Completed</code>, <code>Failed</code>, or <code>Skipped</code>.</p>"""
    operation_result: NotRequired[
        "capo_sagemakertrainingsessionruntime.types.operation_result.OperationResult"
    ]
    """<p>The result payload of the operation. The service populates this field only when the status is <code>Completed</code>. The populated member of the union corresponds to the operation type that was submitted.</p>"""
    error_details: NotRequired["str"]
    """<p>A message describing why the operation failed. The service populates this field only when the status is <code>Failed</code>.</p>"""
    token_usage: NotRequired[
        "capo_sagemakertrainingsessionruntime.types.training_token_usage.TrainingTokenUsage"
    ]
    """<p>The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.</p>"""

error_details instance-attribute

error_details: NotRequired[str]

A message describing why the operation failed. The service populates this field only when the status is Failed.

operation_result instance-attribute

operation_result: NotRequired[OperationResult]

The result payload of the operation. The service populates this field only when the status is Completed. The populated member of the union corresponds to the operation type that was submitted.

status instance-attribute

status: RequestStatus

The current status of the operation. Possible values are Pending, InProgress, Completed, Failed, or Skipped.

token_usage instance-attribute

token_usage: NotRequired[TrainingTokenUsage]

The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.