/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 4.8.0
* Contact: help@meetsquad.ai
*
* 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.js';
import type { ConsiderSolutionToBuildRequest } from './ConsiderSolutionToBuildRequest.js';
import {
ConsiderSolutionToBuildRequestFromJSON,
ConsiderSolutionToBuildRequestFromJSONTyped,
ConsiderSolutionToBuildRequestToJSON,
ConsiderSolutionToBuildRequestToJSONTyped,
} from './ConsiderSolutionToBuildRequest.js';
/**
*
* @export
* @interface InvokeAgentRequestOneOf
*/
export interface InvokeAgentRequestOneOf {
/**
*
* @type {string}
* @memberof InvokeAgentRequestOneOf
*/
agent: InvokeAgentRequestOneOfAgentEnum;
/**
*
* @type {ConsiderSolutionToBuildRequest}
* @memberof InvokeAgentRequestOneOf
*/
data: ConsiderSolutionToBuildRequest;
}
/**
* @export
*/
export const InvokeAgentRequestOneOfAgentEnum = {
ConsiderSolutionToBuild: 'considerSolutionToBuild'
} as const;
export type InvokeAgentRequestOneOfAgentEnum = typeof InvokeAgentRequestOneOfAgentEnum[keyof typeof InvokeAgentRequestOneOfAgentEnum];
/**
* Check if a given object implements the InvokeAgentRequestOneOf interface.
*/
export function instanceOfInvokeAgentRequestOneOf(value: object): value is InvokeAgentRequestOneOf {
if (!('agent' in value) || value['agent'] === undefined) return false;
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function InvokeAgentRequestOneOfFromJSON(json: any): InvokeAgentRequestOneOf {
return InvokeAgentRequestOneOfFromJSONTyped(json, false);
}
export function InvokeAgentRequestOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeAgentRequestOneOf {
if (json == null) {
return json;
}
return {
'agent': json['agent'],
'data': ConsiderSolutionToBuildRequestFromJSON(json['data']),
};
}
export function InvokeAgentRequestOneOfToJSON(json: any): InvokeAgentRequestOneOf {
return InvokeAgentRequestOneOfToJSONTyped(json, false);
}
export function InvokeAgentRequestOneOfToJSONTyped(value?: InvokeAgentRequestOneOf | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'agent': value['agent'],
'data': ConsiderSolutionToBuildRequestToJSON(value['data']),
};
}