/** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HttpFile } from '../http/http'; /** * Result returned from a tool invocation. */ export class ToolResultResponseItem { /** * Variant discriminator. Always `\"tool_result\"`. */ 'type': string; /** * Milliseconds since Unix epoch when this item was produced. */ 'timestamp_in_millis': any | null; /** * True when the item represents internal agent reasoning rather than user-facing output. */ 'is_thinking'?: boolean | null; /** * Human-readable label for the agent step producing this item. */ 'step_title'?: string | null; /** * Matches the originating tool_call. */ 'tool_call_id'?: string | null; /** * Name of the tool that produced this result. */ 'tool_name'?: string | null; /** * Result body (tool output, or `\": \"` for errors). */ 'content': string; /** * Rendering hint for the result content; defaults to `TEXT_PLAIN` for tool results. See `ContentMimeType` for accepted values. */ 'content_type'?: ToolResultResponseItemContentTypeEnum | null; /** * False when the tool invocation errored; true otherwise. */ 'success'?: boolean | null; static readonly discriminator: string | undefined = undefined; static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "type", "baseName": "type", "type": "string", "format": "" }, { "name": "timestamp_in_millis", "baseName": "timestamp_in_millis", "type": "any", "format": "" }, { "name": "is_thinking", "baseName": "is_thinking", "type": "boolean", "format": "" }, { "name": "step_title", "baseName": "step_title", "type": "string", "format": "" }, { "name": "tool_call_id", "baseName": "tool_call_id", "type": "string", "format": "" }, { "name": "tool_name", "baseName": "tool_name", "type": "string", "format": "" }, { "name": "content", "baseName": "content", "type": "string", "format": "" }, { "name": "content_type", "baseName": "content_type", "type": "ToolResultResponseItemContentTypeEnum", "format": "" }, { "name": "success", "baseName": "success", "type": "boolean", "format": "" } ]; static getAttributeTypeMap() { return ToolResultResponseItem.attributeTypeMap; } public constructor() { } } export type ToolResultResponseItemContentTypeEnum = "TEXT_PLAIN" | "TEXT_MARKDOWN" | "TEXT_X_MARKDOWN_WITH_CODE" | "TEXT_HTML" ;