Skip to content

CaseTurn

Source code in docs_src/capo_cloudwatchomni/types/case_turn.py
class CaseTurn(TypedDict, closed=True):
    trace_id: NotRequired[
        "capo_cloudwatchomni.types.experiment_trace_id.ExperimentTraceId"
    ]
    """The trace ID of the turn. Required on every turn of a COMPLETED case. A case that didn't complete may end in turns without a trace ID, such as turns that weren't run; every turn before them must have one."""
    input: NotRequired["capo_cloudwatchomni.types.case_text.CaseText"]
    """The input sent to the target for the turn. Truncated above 16 KB (UTF-8) in the case record, and then listed in truncated."""
    output: NotRequired["capo_cloudwatchomni.types.case_text.CaseText"]
    """The target's response to the turn. Truncated above 16 KB (UTF-8) in the case record."""
    truncated: NotRequired[
        "capo_cloudwatchomni.types.truncated_field_list.TruncatedFieldList"
    ]
    """The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates."""

input instance-attribute

input: NotRequired[CaseText]

The input sent to the target for the turn. Truncated above 16 KB (UTF-8) in the case record, and then listed in truncated.

output instance-attribute

output: NotRequired[CaseText]

The target's response to the turn. Truncated above 16 KB (UTF-8) in the case record.

trace_id instance-attribute

trace_id: NotRequired[ExperimentTraceId]

The trace ID of the turn. Required on every turn of a COMPLETED case. A case that didn't complete may end in turns without a trace ID, such as turns that weren't run; every turn before them must have one.

truncated instance-attribute

truncated: NotRequired[TruncatedFieldList]

The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.