@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
60 lines (59 loc) • 2.21 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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.AnthropicThinkingDeltaToJSONTyped = exports.AnthropicThinkingDeltaToJSON = exports.AnthropicThinkingDeltaFromJSONTyped = exports.AnthropicThinkingDeltaFromJSON = exports.instanceOfAnthropicThinkingDelta = exports.AnthropicThinkingDeltaTypeEnum = void 0;
/**
* @export
*/
exports.AnthropicThinkingDeltaTypeEnum = {
ThinkingDelta: 'thinking_delta'
};
/**
* Check if a given object implements the AnthropicThinkingDelta interface.
*/
function instanceOfAnthropicThinkingDelta(value) {
if (!('thinking' in value) || value['thinking'] === undefined)
return false;
return true;
}
exports.instanceOfAnthropicThinkingDelta = instanceOfAnthropicThinkingDelta;
function AnthropicThinkingDeltaFromJSON(json) {
return AnthropicThinkingDeltaFromJSONTyped(json, false);
}
exports.AnthropicThinkingDeltaFromJSON = AnthropicThinkingDeltaFromJSON;
function AnthropicThinkingDeltaFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'thinking': json['thinking'],
};
}
exports.AnthropicThinkingDeltaFromJSONTyped = AnthropicThinkingDeltaFromJSONTyped;
function AnthropicThinkingDeltaToJSON(json) {
return AnthropicThinkingDeltaToJSONTyped(json, false);
}
exports.AnthropicThinkingDeltaToJSON = AnthropicThinkingDeltaToJSON;
function AnthropicThinkingDeltaToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'thinking': value['thinking'],
};
}
exports.AnthropicThinkingDeltaToJSONTyped = AnthropicThinkingDeltaToJSONTyped;