@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
66 lines (65 loc) • 2.41 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.AnthropicToolUseBlock1ToJSONTyped = exports.AnthropicToolUseBlock1ToJSON = exports.AnthropicToolUseBlock1FromJSONTyped = exports.AnthropicToolUseBlock1FromJSON = exports.instanceOfAnthropicToolUseBlock1 = exports.AnthropicToolUseBlock1TypeEnum = void 0;
/**
* @export
*/
exports.AnthropicToolUseBlock1TypeEnum = {
ToolUse: 'tool_use'
};
/**
* Check if a given object implements the AnthropicToolUseBlock1 interface.
*/
function instanceOfAnthropicToolUseBlock1(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
return true;
}
exports.instanceOfAnthropicToolUseBlock1 = instanceOfAnthropicToolUseBlock1;
function AnthropicToolUseBlock1FromJSON(json) {
return AnthropicToolUseBlock1FromJSONTyped(json, false);
}
exports.AnthropicToolUseBlock1FromJSON = AnthropicToolUseBlock1FromJSON;
function AnthropicToolUseBlock1FromJSONTyped(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.AnthropicToolUseBlock1FromJSONTyped = AnthropicToolUseBlock1FromJSONTyped;
function AnthropicToolUseBlock1ToJSON(json) {
return AnthropicToolUseBlock1ToJSONTyped(json, false);
}
exports.AnthropicToolUseBlock1ToJSON = AnthropicToolUseBlock1ToJSON;
function AnthropicToolUseBlock1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'id': value['id'],
'name': value['name'],
'input': value['input'],
};
}
exports.AnthropicToolUseBlock1ToJSONTyped = AnthropicToolUseBlock1ToJSONTyped;