openapi: 3.1.0 info: title: Fast ACCOUNT_COSTS Copilot API version: 0.1.0 tags: - name: Copilot paths: /copilot/tasks: post: tags: - Copilot summary: Create Tasks description: 'Gets all violations. - table_id: search parameter' operationId: create_tasks_copilot_tasks_post deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CopilotPlanInput' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CopilotPlanOutput' '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Create Tasks Copilot Tasks Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Create Tasks Copilot Tasks Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/session: post: tags: - Copilot summary: Create Session description: 'Gets all violations. - table_id: search parameter' operationId: create_session_copilot_session_post deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CopilotSessionInput' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CopilotSessionOutput' '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Create Session Copilot Session Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Create Session Copilot Session Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' get: tags: - Copilot summary: Get Session History description: 'Gets all violations. - table_id: search parameter' operationId: get_session_history_copilot_session_get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: array items: type: object additionalProperties: true title: Response Get Session History Copilot Session Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Get Session History Copilot Session Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Get Session History Copilot Session Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/session/{session_id}: post: tags: - Copilot summary: Chat description: 'Gets all violations. - table_id: search parameter' operationId: chat_copilot_session__session_id__post deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: session_id in: path required: true schema: type: string title: Session Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChatInput' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ChatSessionOutput' '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Chat Copilot Session Session Id Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Chat Copilot Session Session Id Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' get: tags: - Copilot summary: Complete Chat description: 'Gets all violations. - table_id: search parameter' operationId: complete_chat_copilot_session__session_id__get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: session_id in: path required: true schema: type: string title: Session Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ChatSessionState' '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Complete Chat Copilot Session Session Id Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Complete Chat Copilot Session Session Id Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/tables: get: tags: - Copilot summary: Get Tables description: 'Gets all violations. - table_id: search parameter' operationId: get_tables_copilot_tables_get security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: array items: type: object additionalProperties: true title: Response Get Tables Copilot Tables Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Get Tables Copilot Tables Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Get Tables Copilot Tables Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-explain/{query_id}: get: tags: - Copilot summary: Quick Explain Query operationId: quick_explain_query_copilot_quickchat_query_explain__query_id__get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_id in: path required: true schema: type: string title: Query Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Quick Explain Query Copilot Quickchat Query Explain Query Id Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Quick Explain Query Copilot Quickchat Query Explain Query Id Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Quick Explain Query Copilot Quickchat Query Explain Query Id Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-explain/v2/{query_id}: get: tags: - Copilot summary: Quick Explain Query V2 operationId: quick_explain_query_v2_copilot_quickchat_query_explain_v2__query_id__get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_id in: path required: true schema: type: string title: Query Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Quick Explain Query V2 Copilot Quickchat Query Explain V2 Query Id Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Quick Explain Query V2 Copilot Quickchat Query Explain V2 Query Id Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Quick Explain Query V2 Copilot Quickchat Query Explain V2 Query Id Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-group-explain/{query_hash}: get: tags: - Copilot summary: Quick Explain Query Group operationId: quick_explain_query_group_copilot_quickchat_query_group_explain__query_hash__get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_hash in: path required: true schema: type: string title: Query Hash - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Quick Explain Query Group Copilot Quickchat Query Group Explain Query Hash Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Quick Explain Query Group Copilot Quickchat Query Group Explain Query Hash Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Quick Explain Query Group Copilot Quickchat Query Group Explain Query Hash Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-group-explain/v2/{query_hash}: get: tags: - Copilot summary: Quick Explain Query Group V2 operationId: quick_explain_query_group_v2_copilot_quickchat_query_group_explain_v2__query_hash__get deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_hash in: path required: true schema: type: string title: Query Hash - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Quick Explain Query Group V2 Copilot Quickchat Query Group Explain V2 Query Hash Get '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Quick Explain Query Group V2 Copilot Quickchat Query Group Explain V2 Query Hash Get '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Quick Explain Query Group V2 Copilot Quickchat Query Group Explain V2 Query Hash Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/process_inputs: post: tags: - Copilot summary: Process Inputs description: Processes workflow inputs operationId: process_inputs_copilot_process_inputs_post deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CopilotProcessInputsRequest' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CopilotProcessInputsResponse' '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Process Inputs Copilot Process Inputs Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Process Inputs Copilot Process Inputs Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-analysis/v2/{query_id}: post: tags: - Copilot summary: Analyze Query V2 description: "Analyze a SQL query and provide optimization recommendations\n\nArgs:\n query_id: The query ID to analyze\n model_type: The model to use for analysis (CLAUDE or DEEPSEEK)\n instance_id: The Snowflake instance ID" operationId: analyze_query_v2_copilot_quickchat_query_analysis_v2__query_id__post deprecated: true security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_id in: path required: true schema: type: string title: Query Id - name: model_type in: query required: false schema: $ref: '#/components/schemas/ModelType' default: claude - name: instance_id in: query required: false schema: type: string title: Instance Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Analyze Query V2 Copilot Quickchat Query Analysis V2 Query Id Post '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Analyze Query V2 Copilot Quickchat Query Analysis V2 Query Id Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Analyze Query V2 Copilot Quickchat Query Analysis V2 Query Id Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/table-analysis/v2/{table_name}: post: tags: - Copilot summary: Analyze Table V2 description: "Analyze a Snowflake table and provide optimization recommendations\n\nArgs:\n table_name: The complete table name (db.schema.table)\n model_type: The model to use for analysis (CLAUDE or DEEPSEEK)\n instance_id: The Snowflake instance ID" operationId: analyze_table_v2_copilot_quickchat_table_analysis_v2__table_name__post security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: table_name in: path required: true schema: type: string title: Table Name - name: model_type in: query required: false schema: $ref: '#/components/schemas/ModelType' default: claude - name: instance_id in: query required: false schema: type: string title: Instance Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Analyze Table V2 Copilot Quickchat Table Analysis V2 Table Name Post '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Analyze Table V2 Copilot Quickchat Table Analysis V2 Table Name Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Analyze Table V2 Copilot Quickchat Table Analysis V2 Table Name Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-analysis/v2/plain/{query_id}: post: tags: - Copilot summary: Analyze Query V2 description: "Analyze a SQL query and provide optimization recommendations\n\nArgs:\n query_id: The query ID to analyze\n model_type: The model to use for analysis (CLAUDE or DEEPSEEK)\n instance_id: The Snowflake instance ID" operationId: analyze_query_v2_copilot_quickchat_query_analysis_v2_plain__query_id__post security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: query_id in: path required: true schema: type: string title: Query Id - name: model_type in: query required: false schema: $ref: '#/components/schemas/ModelType' default: claude - name: instance_id in: query required: false schema: type: string title: Instance Id - name: include_sql in: query required: false schema: type: boolean default: true title: Include Sql - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Analyze Query V2 Copilot Quickchat Query Analysis V2 Plain Query Id Post '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Analyze Query V2 Copilot Quickchat Query Analysis V2 Plain Query Id Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Analyze Query V2 Copilot Quickchat Query Analysis V2 Plain Query Id Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/table-analysis/v2/plain/{table_name}: post: tags: - Copilot summary: Analyze Table V2 description: "Analyze a SQL query and provide optimization recommendations\n\nArgs:\n query_id: The query ID to analyze\n model_type: The model to use for analysis (CLAUDE or DEEPSEEK)\n instance_id: The Snowflake instance ID" operationId: analyze_table_v2_copilot_quickchat_table_analysis_v2_plain__table_name__post security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: table_name in: path required: true schema: type: string title: Table Name - name: model_type in: query required: false schema: $ref: '#/components/schemas/ModelType' default: claude - name: instance_id in: query required: false schema: type: string title: Instance Id - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: {} '400': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 400 Analyze Table V2 Copilot Quickchat Table Analysis V2 Plain Table Name Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Analyze Table V2 Copilot Quickchat Table Analysis V2 Plain Table Name Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-static-analysis: post: tags: - Copilot summary: Analyze Query Static Endpoint description: "Perform static analysis on a SQL query without executing it.\n\nThis endpoint analyzes the query structure to identify potential issues\nsuch as SELECT *, functions in JOIN/filter conditions, missing LIMIT,\nand Cartesian products.\n\nArgs:\n request: Contains the SQL query and optional dialect (default: snowflake)\n\nReturns:\n Analysis results with identified issues and recommendations" operationId: analyze_query_static_endpoint_copilot_quickchat_query_static_analysis_post security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StaticQueryAnalysisRequest' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/StaticQueryAnalysisResponse' '400': description: Invalid SQL query content: application/json: schema: type: object additionalProperties: true title: Response 400 Analyze Query Static Endpoint Copilot Quickchat Query Static Analysis Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Analyze Query Static Endpoint Copilot Quickchat Query Static Analysis Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/table-metadata: post: tags: - Copilot summary: Get Table Metadata Endpoint description: "Get comprehensive table metadata, statistics, and clustering information.\n\nThis endpoint provides all data needed for table optimization analysis:\n- Table metadata (schema, columns, data types)\n- Table statistics (storage, read/write counts, costs)\n- Clustering information (if clustering keys exist)\n\nArgs:\n request: Contains fully_qualified_names (list of database.schema.table)\n and optional instance_id\n\nReturns:\n Dictionary with table names as keys and optimization data as values" operationId: get_table_metadata_endpoint_copilot_quickchat_table_metadata_post security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: x-tenant in: header required: false schema: type: string title: X-Tenant requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TableMetadataRequest' responses: '200': description: Successful Response content: application/json: schema: {} '400': description: Invalid table name content: application/json: schema: type: object additionalProperties: true title: Response 400 Get Table Metadata Endpoint Copilot Quickchat Table Metadata Post '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Get Table Metadata Endpoint Copilot Quickchat Table Metadata Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /copilot/quickchat/query-optimization-guide: get: tags: - Copilot summary: Get Query Optimization Guide Endpoint description: 'Get the query optimization guide for a specific SQL dialect. This endpoint returns best practices, workflow guidelines, and anti-patterns to avoid when optimizing queries.' operationId: get_query_optimization_guide_endpoint_copilot_quickchat_query_optimization_guide_get security: - HTTPBearer: [] - HTTPBearer: [] parameters: - name: dialect in: query required: false schema: type: string description: SQL dialect (currently only snowflake supported) default: snowflake title: Dialect description: SQL dialect (currently only snowflake supported) - name: x-tenant in: header required: false schema: type: string title: X-Tenant responses: '200': description: Successful Response content: application/json: schema: {} '403': description: Not supported for public user content: application/json: schema: type: object additionalProperties: true title: Response 403 Get Query Optimization Guide Endpoint Copilot Quickchat Query Optimization Guide Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: BlockOutput: properties: message: type: string title: Message type: object required: - message title: BlockOutput CopilotProcessInputsRequest: properties: workflow_type: type: string title: Workflow Type purpose: anyOf: - type: string - type: 'null' title: Purpose workflow_inputs: additionalProperties: true type: object title: Workflow Inputs type: object required: - workflow_type - workflow_inputs title: CopilotProcessInputsRequest StaticQueryIssue: properties: type: type: string title: Type severity: type: string title: Severity message: type: string title: Message recommendation: type: string title: Recommendation location: anyOf: - type: string - type: 'null' title: Location disclaimer: anyOf: - type: string - type: 'null' title: Disclaimer type: object required: - type - severity - message - recommendation title: StaticQueryIssue description: Individual issue found in static analysis. StaticQueryAnalysisRequest: properties: sql: type: string title: Sql dialect: anyOf: - type: string - type: 'null' title: Dialect default: snowflake type: object required: - sql title: StaticQueryAnalysisRequest description: Request schema for static query analysis. ChatOutput: properties: output_type: $ref: '#/components/schemas/ChatOutputType' output: anyOf: - $ref: '#/components/schemas/ToolOutput' - $ref: '#/components/schemas/AgentOutput' - $ref: '#/components/schemas/BlockOutput' title: Output is_finished: type: boolean title: Is Finished timestamp: anyOf: - type: string - type: 'null' title: Timestamp id: anyOf: - type: integer - type: 'null' title: Id pii: anyOf: - $ref: '#/components/schemas/PIIInformation' - type: 'null' next_response_streaming: anyOf: - type: boolean - type: 'null' title: Next Response Streaming default: false type: object required: - output_type - output - is_finished title: ChatOutput ChatInput: properties: human_message: anyOf: - type: string - type: 'null' title: Human Message feedback: anyOf: - type: string - type: 'null' title: Feedback default: '' approval: anyOf: - type: boolean - type: 'null' title: Approval default: true timestamp: anyOf: - type: string - type: 'null' title: Timestamp id: anyOf: - type: integer - type: 'null' title: Id selected: anyOf: - additionalProperties: type: string type: object - type: 'null' title: Selected next_response_streaming: anyOf: - type: boolean - type: 'null' title: Next Response Streaming default: false type: object title: ChatInput HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError CopilotPlanOutput: properties: tasks: items: type: string type: array title: Tasks pii: anyOf: - $ref: '#/components/schemas/PIIInformation' - type: 'null' type: object required: - tasks title: CopilotPlanOutput ChatSessionOutput: properties: chat_output: $ref: '#/components/schemas/ChatOutput' tasks: additionalProperties: true type: object title: Tasks next_message: anyOf: - type: string - type: 'null' title: Next Message default: '' type: object required: - chat_output - tasks title: ChatSessionOutput ModelType: type: string enum: - claude - deepseek title: ModelType AgentAction: properties: name: type: string title: Name args: additionalProperties: true type: object title: Args user_requires_approval: anyOf: - type: boolean - type: 'null' title: User Requires Approval streaming: type: boolean title: Streaming type: object required: - name - args title: AgentAction PIIResponse: properties: message: type: string title: Message type: object required: - message title: PIIResponse DBTModel-Output: properties: model_name: type: string title: Model Name adapter: anyOf: - type: string - type: 'null' title: Adapter model_description: anyOf: - type: string - type: 'null' title: Model Description compiled_sql: anyOf: - type: string - type: 'null' title: Compiled Sql schedule: anyOf: - type: string - type: 'null' title: Schedule columns: anyOf: - items: $ref: '#/components/schemas/Column' type: array - type: 'null' title: Columns dependencies: anyOf: - items: $ref: '#/components/schemas/DBTModel-Output' type: array - type: 'null' title: Dependencies type: object required: - model_name title: DBTModel PIIInformation: properties: message: type: string title: Message pii_detected: type: boolean title: Pii Detected type: object required: - message - pii_detected title: PIIInformation Column: properties: column_name: anyOf: - type: string - type: 'null' title: Column Name data_type: anyOf: - type: string - type: 'null' title: Data Type description: anyOf: - type: string - type: 'null' title: Description tests: anyOf: - items: type: string type: array - type: 'null' title: Tests type: object title: Column CopilotSessionOutput: properties: session_id: type: string title: Session Id pii: anyOf: - $ref: '#/components/schemas/PIIInformation' - type: 'null' type: object required: - session_id title: CopilotSessionOutput StaticQueryAnalysisResponse: properties: success: type: boolean title: Success query: anyOf: - type: string - type: 'null' title: Query dialect: anyOf: - type: string - type: 'null' title: Dialect issues: items: $ref: '#/components/schemas/StaticQueryIssue' type: array title: Issues default: [] issue_count: type: integer title: Issue Count default: 0 error: anyOf: - type: string - type: 'null' title: Error type: object required: - success title: StaticQueryAnalysisResponse description: Response schema for static query analysis. CopilotProcessInputsResponse: properties: result: items: $ref: '#/components/schemas/DBTModel-Output' type: array title: Result pii: anyOf: - $ref: '#/components/schemas/PIIResponse' - type: 'null' type: object required: - result title: CopilotProcessInputsResponse CopilotSessionInput: properties: workflow_type: type: string title: Workflow Type purpose: type: string title: Purpose tasks: items: type: string type: array title: Tasks workflow_inputs: additionalProperties: true type: object title: Workflow Inputs type: object required: - workflow_type - purpose - tasks - workflow_inputs title: CopilotSessionInput TableMetadataRequest: properties: fully_qualified_names: items: type: string type: array title: Fully Qualified Names instance_id: anyOf: - type: integer - type: 'null' title: Instance Id type: object required: - fully_qualified_names title: TableMetadataRequest description: Request schema for table metadata and statistics. ToolOutput: properties: tool_output: type: string title: Tool Output output_format: type: string title: Output Format additional_output: anyOf: - additionalProperties: true type: object - type: 'null' title: Additional Output type: object required: - tool_output - output_format title: ToolOutput ChatOutputType: type: string enum: - tool - agent - block title: ChatOutputType CopilotPlanInput: properties: workflow_type: type: string title: Workflow Type purpose: type: string title: Purpose workflow_inputs: additionalProperties: true type: object title: Workflow Inputs type: object required: - workflow_type - purpose - workflow_inputs title: CopilotPlanInput AgentOutput: properties: text: anyOf: - type: string - type: 'null' title: Text default: '' reasoning: anyOf: - type: string - type: 'null' title: Reasoning default: '' plan: anyOf: - type: string - type: 'null' title: Plan default: '' criticism: anyOf: - type: string - type: 'null' title: Criticism default: '' speak: anyOf: - type: string - type: 'null' title: Speak default: '' full_text: anyOf: - type: string - type: 'null' title: Full Text default: '' message_to_user: anyOf: - type: string - type: 'null' title: Message To User default: '' feedback: anyOf: - type: string - type: 'null' title: Feedback suggested_action: anyOf: - $ref: '#/components/schemas/AgentAction' - type: 'null' type: object title: AgentOutput ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type type: object required: - loc - msg - type title: ValidationError ChatSessionState: properties: session_input: $ref: '#/components/schemas/CopilotSessionInput' chat_history: items: additionalProperties: true type: object type: array title: Chat History tasks: additionalProperties: type: string type: object title: Tasks next_message: anyOf: - type: string - type: 'null' title: Next Message default: '' next_response_streaming: anyOf: - type: boolean - type: 'null' title: Next Response Streaming default: false type: object required: - session_input - chat_history - tasks title: ChatSessionState securitySchemes: HTTPBearer: type: http scheme: bearer