/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * A message for a turn that is ALREADY RUNNING. The agent takes it into account and keeps what it was doing, instead of queueing behind the turn (`POST /prompt`) or stopping it (`POST /interrupt`). * * **Conversations:** omit `conversation` to steer the Box's most-recently-active conversation, exactly like `POST /prompt` chooses one. Pass a `conversation` id to steer a specific one while the others keep running. * * The response's `native` says how the harness took it. See [Integrated agents](/box/integrated-agents). * * @export * @interface SteerRequest */ export interface SteerRequest { /** * The extra instruction for the running turn. * @type {string} * @memberof SteerRequest */ message: string; /** * Conversation id to steer. Omit to steer the Box's most-recently-active conversation. * @type {string} * @memberof SteerRequest */ conversation?: string | null; } /** * Check if a given object implements the SteerRequest interface. */ export function instanceOfSteerRequest(value: object): value is SteerRequest { if (!('message' in value) || value['message'] === undefined) return false; return true; } export function SteerRequestFromJSON(json: any): SteerRequest { return SteerRequestFromJSONTyped(json, false); } export function SteerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SteerRequest { if (json == null) { return json; } return { 'message': json['message'], 'conversation': json['conversation'] == null ? undefined : json['conversation'], }; } export function SteerRequestToJSON(json: any): SteerRequest { return SteerRequestToJSONTyped(json, false); } export function SteerRequestToJSONTyped(value?: SteerRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'conversation': value['conversation'], }; }