UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
60 lines (59 loc) 2.24 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnthropicThinkingDelta1ToJSONTyped = exports.AnthropicThinkingDelta1ToJSON = exports.AnthropicThinkingDelta1FromJSONTyped = exports.AnthropicThinkingDelta1FromJSON = exports.instanceOfAnthropicThinkingDelta1 = exports.AnthropicThinkingDelta1TypeEnum = void 0; /** * @export */ exports.AnthropicThinkingDelta1TypeEnum = { ThinkingDelta: 'thinking_delta' }; /** * Check if a given object implements the AnthropicThinkingDelta1 interface. */ function instanceOfAnthropicThinkingDelta1(value) { if (!('thinking' in value) || value['thinking'] === undefined) return false; return true; } exports.instanceOfAnthropicThinkingDelta1 = instanceOfAnthropicThinkingDelta1; function AnthropicThinkingDelta1FromJSON(json) { return AnthropicThinkingDelta1FromJSONTyped(json, false); } exports.AnthropicThinkingDelta1FromJSON = AnthropicThinkingDelta1FromJSON; function AnthropicThinkingDelta1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'thinking': json['thinking'], }; } exports.AnthropicThinkingDelta1FromJSONTyped = AnthropicThinkingDelta1FromJSONTyped; function AnthropicThinkingDelta1ToJSON(json) { return AnthropicThinkingDelta1ToJSONTyped(json, false); } exports.AnthropicThinkingDelta1ToJSON = AnthropicThinkingDelta1ToJSON; function AnthropicThinkingDelta1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'thinking': value['thinking'], }; } exports.AnthropicThinkingDelta1ToJSONTyped = AnthropicThinkingDelta1ToJSONTyped;