@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
58 lines (57 loc) • 2.15 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.AnthropicThinkingBlockToJSONTyped = exports.AnthropicThinkingBlockToJSON = exports.AnthropicThinkingBlockFromJSONTyped = exports.AnthropicThinkingBlockFromJSON = exports.instanceOfAnthropicThinkingBlock = exports.AnthropicThinkingBlockTypeEnum = void 0;
/**
* @export
*/
exports.AnthropicThinkingBlockTypeEnum = {
Thinking: 'thinking'
};
/**
* Check if a given object implements the AnthropicThinkingBlock interface.
*/
function instanceOfAnthropicThinkingBlock(value) {
return true;
}
exports.instanceOfAnthropicThinkingBlock = instanceOfAnthropicThinkingBlock;
function AnthropicThinkingBlockFromJSON(json) {
return AnthropicThinkingBlockFromJSONTyped(json, false);
}
exports.AnthropicThinkingBlockFromJSON = AnthropicThinkingBlockFromJSON;
function AnthropicThinkingBlockFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'thinking': json['thinking'] == null ? undefined : json['thinking'],
};
}
exports.AnthropicThinkingBlockFromJSONTyped = AnthropicThinkingBlockFromJSONTyped;
function AnthropicThinkingBlockToJSON(json) {
return AnthropicThinkingBlockToJSONTyped(json, false);
}
exports.AnthropicThinkingBlockToJSON = AnthropicThinkingBlockToJSON;
function AnthropicThinkingBlockToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'thinking': value['thinking'],
};
}
exports.AnthropicThinkingBlockToJSONTyped = AnthropicThinkingBlockToJSONTyped;