Skip to main content

/ai/query-builder/generate/

POST 

/api/1.0/ai/query-builder/generate/

Generate SQL query using AI agent with access to schema tools.

Uses the agent architecture (AgentScope.ADMIN) which allows the AI to:
1. Fetch the list of available tables/objects
2. Fetch detailed schema for tables it deems relevant
3. Generate a SQL query using only the relevant schema

Returns a task_id for async processing - poll the status endpoint.

Request

Responses

OK