UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
58 lines (57 loc) 1.73 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 AnthropicToolUseBlock1TypeEnum = { ToolUse: 'tool_use' }; /** * Check if a given object implements the AnthropicToolUseBlock1 interface. */ export function instanceOfAnthropicToolUseBlock1(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function AnthropicToolUseBlock1FromJSON(json) { return AnthropicToolUseBlock1FromJSONTyped(json, false); } export 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'], }; } export function AnthropicToolUseBlock1ToJSON(json) { return AnthropicToolUseBlock1ToJSONTyped(json, false); } export function AnthropicToolUseBlock1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'id': value['id'], 'name': value['name'], 'input': value['input'], }; }