@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
66 lines (65 loc) • 2.38 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.AnthropicToolUseBlockToJSONTyped = exports.AnthropicToolUseBlockToJSON = exports.AnthropicToolUseBlockFromJSONTyped = exports.AnthropicToolUseBlockFromJSON = exports.instanceOfAnthropicToolUseBlock = exports.AnthropicToolUseBlockTypeEnum = void 0;
/**
* @export
*/
exports.AnthropicToolUseBlockTypeEnum = {
ToolUse: 'tool_use'
};
/**
* Check if a given object implements the AnthropicToolUseBlock interface.
*/
function instanceOfAnthropicToolUseBlock(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
return true;
}
exports.instanceOfAnthropicToolUseBlock = instanceOfAnthropicToolUseBlock;
function AnthropicToolUseBlockFromJSON(json) {
return AnthropicToolUseBlockFromJSONTyped(json, false);
}
exports.AnthropicToolUseBlockFromJSON = AnthropicToolUseBlockFromJSON;
function AnthropicToolUseBlockFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'id': json['id'],
'name': json['name'],
'input': json['input'] == null ? undefined : json['input'],
};
}
exports.AnthropicToolUseBlockFromJSONTyped = AnthropicToolUseBlockFromJSONTyped;
function AnthropicToolUseBlockToJSON(json) {
return AnthropicToolUseBlockToJSONTyped(json, false);
}
exports.AnthropicToolUseBlockToJSON = AnthropicToolUseBlockToJSON;
function AnthropicToolUseBlockToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'id': value['id'],
'name': value['name'],
'input': value['input'],
};
}
exports.AnthropicToolUseBlockToJSONTyped = AnthropicToolUseBlockToJSONTyped;