Skip to content

FrameSamplingStrategy

Source code in docs_src/capo_elementalinference/types/frame_sampling_strategy.py
class FrameSamplingStrategy(TypedDict, closed=True):
    mode: "capo_elementalinference.types.frame_sampling_mode.FrameSamplingMode"
    """<p>Which frames of the window to send: FIRST (the first frames), UNIFORM (frames spread evenly across the window), or LAST (the last frames). </p>"""
    count: NotRequired["int"]
    """<p>The number of frames to send on each run. Valid range: 1 to 64. The default is 1. Each frame adds to the size of the model request and to what the model charges for it. </p>"""

count instance-attribute

count: NotRequired[int]

The number of frames to send on each run. Valid range: 1 to 64. The default is 1. Each frame adds to the size of the model request and to what the model charges for it.

mode instance-attribute

Which frames of the window to send: FIRST (the first frames), UNIFORM (frames spread evenly across the window), or LAST (the last frames).