import { APIResource } from "../../core/resource.mjs"; import * as MessageAPI from "../message/message.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { type Uploadable } from "../../core/uploads.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Message extends APIResource { /** * Generate a streaming response with delta (incremental changes) based on the user * message and knowledge base provided. */ create(params: MessageCreateParams, options?: RequestOptions): APIPromise; } export interface MessageCreateParams { /** * Body param */ chatbot_id: string; /** * Body param */ agent_ids?: string; /** * Body param */ anonymize_em?: boolean | null; /** * Body param */ anonymize_lm?: boolean | null; /** * Body param */ assistant_message_id?: string | null; /** * Body param */ chat_history?: string | null; /** * Body param */ connectors?: string; /** * Body param */ conversation_id?: string | null; /** * Body param */ digital_employee_id?: string | null; /** * Body param */ exclude_events?: Array; /** * Body param */ exclude_prefix?: boolean; /** * Body param */ files?: Array; /** * Body param */ filters?: string | null; /** * Body param */ include_pipeline_trace?: boolean; /** * Body param */ include_states?: boolean; /** * Body param */ is_edited?: boolean; /** * Body param */ is_regenerated?: boolean; /** * Body param */ is_retried?: boolean; /** * Body param */ message?: string | null; /** * Body param */ metadata?: string | null; /** * Body param */ model_name?: string | null; /** * Body param */ parent_id?: string | null; /** * Body param */ quote?: string | null; /** * Body param */ regenerated_message_id?: string | null; /** * Body param: The type of search to perform. * * Attributes: NORMAL: Get answer from chatbot knowledge. SEARCH: Get answer from * various connectors. SQL_SEARCH: Get answer from SQL-based database. * AGENT_CONNECTOR: Execute a scoped glaip coordinator with per-request connector * selection. No request_connector or connector_management tooling — missing * connectors yield a plain-text response from the coordinator. WEB: Get more * relevant information from the web. (DEPRECATED) Web Search uses real-time data. * Agent selection isn't available in this mode. DEEP_RESEARCH: Get answer from * Deep Research Agent. ESSENTIALS_DEEP_RESEARCH: Get answer from Deep Research * with Essentials mode. Provides key points and core insights without noise, * optimized for speed and clarity. Ideal for quick decision-making support and * fast orientation. COMPREHENSIVE_DEEP_RESEARCH: Get answer from Deep Research * with Comprehensive mode. Delivers the full picture with depth and thoroughness, * covering all relevant angles, details, and supporting data. Suitable for * professional research tasks where precision matters more than speed. * PRIVATE_DEEP_RESEARCH: Get answer from Deep Research with private deep research * providers. INTERNAL_DEEP_RESEARCH: Retrieves answers using Deep Research with * internal data sources. (DEPRECATED) Accesses internal repositories such as * Google Drive and utilizes the same processing engine as Essentials Deep Research * mode. */ search_type?: MessageAPI.SearchType | null; /** * Body param */ skill_ids?: string; /** * Body param */ smart_mode?: boolean; /** * Body param */ source?: string | null; /** * Body param */ stream?: boolean; /** * Body param */ stream_id?: string | null; /** * Body param */ stream_message_only?: boolean; /** * Body param */ temporary_file_ids?: string | null; /** * Body param */ use_cache?: boolean | null; /** * Body param */ user_id?: string | null; /** * Body param */ user_message_id?: string | null; /** * Header param */ 'Accept-Language'?: string; /** * Header param */ 'X-API-Key'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Message { export { type MessageCreateParams as MessageCreateParams }; } //# sourceMappingURL=message.d.mts.map