/* 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 { ConsiderPRDForSolutionRequest } from './ConsiderPRDForSolutionRequest.js';
import {
ConsiderPRDForSolutionRequestFromJSON,
ConsiderPRDForSolutionRequestFromJSONTyped,
ConsiderPRDForSolutionRequestToJSON,
ConsiderPRDForSolutionRequestToJSONTyped,
} from './ConsiderPRDForSolutionRequest.js';
/**
*
* @export
* @interface InvokeAgentRequestOneOf6
*/
export interface InvokeAgentRequestOneOf6 {
/**
*
* @type {string}
* @memberof InvokeAgentRequestOneOf6
*/
agent: InvokeAgentRequestOneOf6AgentEnum;
/**
*
* @type {ConsiderPRDForSolutionRequest}
* @memberof InvokeAgentRequestOneOf6
*/
data: ConsiderPRDForSolutionRequest;
}
/**
* @export
*/
export const InvokeAgentRequestOneOf6AgentEnum = {
ConsiderPrdForSolution: 'considerPRDForSolution'
} as const;
export type InvokeAgentRequestOneOf6AgentEnum = typeof InvokeAgentRequestOneOf6AgentEnum[keyof typeof InvokeAgentRequestOneOf6AgentEnum];
/**
* Check if a given object implements the InvokeAgentRequestOneOf6 interface.
*/
export function instanceOfInvokeAgentRequestOneOf6(value: object): value is InvokeAgentRequestOneOf6 {
if (!('agent' in value) || value['agent'] === undefined) return false;
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function InvokeAgentRequestOneOf6FromJSON(json: any): InvokeAgentRequestOneOf6 {
return InvokeAgentRequestOneOf6FromJSONTyped(json, false);
}
export function InvokeAgentRequestOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeAgentRequestOneOf6 {
if (json == null) {
return json;
}
return {
'agent': json['agent'],
'data': ConsiderPRDForSolutionRequestFromJSON(json['data']),
};
}
export function InvokeAgentRequestOneOf6ToJSON(json: any): InvokeAgentRequestOneOf6 {
return InvokeAgentRequestOneOf6ToJSONTyped(json, false);
}
export function InvokeAgentRequestOneOf6ToJSONTyped(value?: InvokeAgentRequestOneOf6 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'agent': value['agent'],
'data': ConsiderPRDForSolutionRequestToJSON(value['data']),
};
}