Skip to content

Interface: GenieChatOptions

Options accepted by both genieChat and genieEventChat.

optional agentMode?: boolean

Use the streaming Genie Agent Mode API. Defaults to true; set false to force the legacy start/create/get-message polling flow.


optional context?: ContextLike

External cancellation. Accepts a WHATWG AbortSignal or a fully-built SDK Context (see databricks.ContextLike). Aborting it cancels every in-flight Agent Mode stream, SDK call, and the next inter-poll sleep.


optional conversationId?: string

Continue an existing conversation. Agent Mode sends it as conversation_id; legacy polling passes it to createMessage. Read the id from the prior turn’s terminal GenieMessage or result event.


optional enableVisualization?: boolean

Ask Agent Mode to generate visualizations when appropriate.


optional pollIntervalMs?: number

Legacy fallback cadence between successive getMessage calls (default 500ms).


optional workspaceClient?: WorkspaceClient$1

Explicit WorkspaceClient. Defaults to AppKit’s per-request execution-context client when AppKit is installed and we’re inside a request; falls back to createWorkspaceClient() (default auth) otherwise.