UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.46 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. */ /** * @export */ export const AnthropicTextDeltaTypeEnum = { TextDelta: 'text_delta' }; /** * Check if a given object implements the AnthropicTextDelta interface. */ export function instanceOfAnthropicTextDelta(value) { if (!('text' in value) || value['text'] === undefined) return false; return true; } export function AnthropicTextDeltaFromJSON(json) { return AnthropicTextDeltaFromJSONTyped(json, false); } export function AnthropicTextDeltaFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'], }; } export function AnthropicTextDeltaToJSON(json) { return AnthropicTextDeltaToJSONTyped(json, false); } export function AnthropicTextDeltaToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'text': value['text'], }; }