// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface MessageTarget {
    /**
     * This is the role of the message to target.
     *
     * If not specified, will find the position in the message history ignoring role (effectively `any`).
     */
    role?: Vapi.MessageTargetRole | undefined;
    /**
     * This is the position of the message to target.
     * - Negative numbers: Count from end (-1 = most recent, -2 = second most recent)
     * - 0: First/oldest message in history
     * - Positive numbers: Specific position (0-indexed from start)
     *
     * @default -1 (most recent message)
     */
    position?: number | undefined;
}
