airflow.providers.databricks.hooks.genie

Hook for Databricks Genie conversations.

Attributes

GENIE_TERMINAL_STATUSES

Classes

DatabricksGenieHook

Consult a Genie space using the Databricks Workspace REST API.

Module Contents

airflow.providers.databricks.hooks.genie.GENIE_TERMINAL_STATUSES[source]
class airflow.providers.databricks.hooks.genie.DatabricksGenieHook(*args, poll_interval=_POLL_INTERVAL_SECONDS, **kwargs)[source]

Bases: airflow.providers.databricks.hooks.databricks_base.BaseDatabricksHook, airflow.providers.common.ai.managed_agents.base.BaseManagedAgentHook

Consult a Genie space using the Databricks Workspace REST API.

The Databricks connection supplies authentication. Genie start/send requests are sent once: their outcome may be unknown after a timeout or server error, so the hook never retries them. Message and query-result reads use the hook’s configured retry policy.

agent_platform = 'databricks.genie'[source]

The platform every ManagedAgentRef from this hook carries.

poll_interval = 1.0[source]
resolve_agent(agent)[source]

Normalize agent into a platform-qualified reference. Must not make a network call.

get_agent_capabilities(agent)[source]

Report what agent on this connection can do. Must not make a network call.

invoke_agent(agent, request)[source]

Send request to agent and return its answer. Blocking.

consult(space_id, prompt, *, conversation_id=None, timeout=None)[source]

Submit one question and return a bounded, structured Genie result.

Was this entry helpful?