UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
102 lines (88 loc) 2.66 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface AnthropicToolUseBlock */ export interface AnthropicToolUseBlock { /** * * @type {string} * @memberof AnthropicToolUseBlock */ type?: AnthropicToolUseBlockTypeEnum; /** * * @type {string} * @memberof AnthropicToolUseBlock */ id: string; /** * * @type {string} * @memberof AnthropicToolUseBlock */ name: string; /** * * @type {{ [key: string]: any; }} * @memberof AnthropicToolUseBlock */ input?: { [key: string]: any; }; } /** * @export */ export const AnthropicToolUseBlockTypeEnum = { ToolUse: 'tool_use' } as const; export type AnthropicToolUseBlockTypeEnum = typeof AnthropicToolUseBlockTypeEnum[keyof typeof AnthropicToolUseBlockTypeEnum]; /** * Check if a given object implements the AnthropicToolUseBlock interface. */ export function instanceOfAnthropicToolUseBlock(value: object): value is AnthropicToolUseBlock { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function AnthropicToolUseBlockFromJSON(json: any): AnthropicToolUseBlock { return AnthropicToolUseBlockFromJSONTyped(json, false); } export function AnthropicToolUseBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnthropicToolUseBlock { 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 AnthropicToolUseBlockToJSON(json: any): AnthropicToolUseBlock { return AnthropicToolUseBlockToJSONTyped(json, false); } export function AnthropicToolUseBlockToJSONTyped(value?: AnthropicToolUseBlock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'id': value['id'], 'name': value['name'], 'input': value['input'], }; }