UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
85 lines (71 loc) 2.28 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * Contact: contact@emergentmethods.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'; /** * * @export * @interface AnthropicThinkingDelta1 */ export interface AnthropicThinkingDelta1 { /** * * @type {string} * @memberof AnthropicThinkingDelta1 */ type?: AnthropicThinkingDelta1TypeEnum; /** * * @type {string} * @memberof AnthropicThinkingDelta1 */ thinking: string; } /** * @export */ export const AnthropicThinkingDelta1TypeEnum = { ThinkingDelta: 'thinking_delta' } as const; export type AnthropicThinkingDelta1TypeEnum = typeof AnthropicThinkingDelta1TypeEnum[keyof typeof AnthropicThinkingDelta1TypeEnum]; /** * Check if a given object implements the AnthropicThinkingDelta1 interface. */ export function instanceOfAnthropicThinkingDelta1(value: object): value is AnthropicThinkingDelta1 { if (!('thinking' in value) || value['thinking'] === undefined) return false; return true; } export function AnthropicThinkingDelta1FromJSON(json: any): AnthropicThinkingDelta1 { return AnthropicThinkingDelta1FromJSONTyped(json, false); } export function AnthropicThinkingDelta1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnthropicThinkingDelta1 { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'thinking': json['thinking'], }; } export function AnthropicThinkingDelta1ToJSON(json: any): AnthropicThinkingDelta1 { return AnthropicThinkingDelta1ToJSONTyped(json, false); } export function AnthropicThinkingDelta1ToJSONTyped(value?: AnthropicThinkingDelta1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'thinking': value['thinking'], }; }