UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 2 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 { instanceOfAnthropicInputJsonDelta, AnthropicInputJsonDeltaFromJSONTyped, AnthropicInputJsonDeltaToJSON, } from './AnthropicInputJsonDelta'; import { instanceOfAnthropicTextDelta, AnthropicTextDeltaFromJSONTyped, AnthropicTextDeltaToJSON, } from './AnthropicTextDelta'; import { instanceOfAnthropicThinkingDelta, AnthropicThinkingDeltaFromJSONTyped, AnthropicThinkingDeltaToJSON, } from './AnthropicThinkingDelta'; export function Delta1FromJSON(json) { return Delta1FromJSONTyped(json, false); } export function Delta1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (instanceOfAnthropicInputJsonDelta(json)) { return AnthropicInputJsonDeltaFromJSONTyped(json, true); } if (instanceOfAnthropicTextDelta(json)) { return AnthropicTextDeltaFromJSONTyped(json, true); } if (instanceOfAnthropicThinkingDelta(json)) { return AnthropicThinkingDeltaFromJSONTyped(json, true); } return {}; } export function Delta1ToJSON(json) { return Delta1ToJSONTyped(json, false); } export function Delta1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (instanceOfAnthropicInputJsonDelta(value)) { return AnthropicInputJsonDeltaToJSON(value); } if (instanceOfAnthropicTextDelta(value)) { return AnthropicTextDeltaToJSON(value); } if (instanceOfAnthropicThinkingDelta(value)) { return AnthropicThinkingDeltaToJSON(value); } return {}; }