/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.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'; import type { ModelParameters } from './ModelParameters'; import { ModelParametersFromJSON, ModelParametersFromJSONTyped, ModelParametersToJSON, ModelParametersToJSONTyped, } from './ModelParameters'; /** * * @export * @interface Tool */ export interface Tool { /** * * @type {string} * @memberof Tool */ name?: string | null; /** * * @type {string} * @memberof Tool */ description?: string | null; /** * * @type {ModelParameters} * @memberof Tool */ parameters?: ModelParameters | null; /** * * @type {string} * @memberof Tool */ type?: string | null; } /** * Check if a given object implements the Tool interface. */ export function instanceOfTool(value: object): value is Tool { return true; } export function ToolFromJSON(json: any): Tool { return ToolFromJSONTyped(json, false); } export function ToolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tool { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'parameters': json['parameters'] == null ? undefined : ModelParametersFromJSON(json['parameters']), 'type': json['type'] == null ? undefined : json['type'], }; } export function ToolToJSON(json: any): Tool { return ToolToJSONTyped(json, false); } export function ToolToJSONTyped(value?: Tool | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'description': value['description'], 'parameters': ModelParametersToJSON(value['parameters']), 'type': value['type'], }; }