Agent bricks

From diegosouzapw/awesome-omni-skill · View interactive version

Agent bricks is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skill. Create and manage Databricks Agent Bricks: Knowledge Assistants (KA) for document Q&A, Genie Spaces for SQL exploration, and Multi-Agent Supervisors (MAS) for multi-agent orchestration. Use when building conversational AI applications on Databricks.

How to use this skill

Skill file

Agent Bricks

Create and manage Databricks Agent Bricks - pre-built AI components for building conversational applications.

Overview

Agent Bricks are three types of pre-built AI tiles in Databricks:

| Brick | Purpose | Data Source |

|-------|---------|-------------|

| Knowledge Assistant (KA) | Document-based Q&A using RAG | PDF/text files in Volumes |

| Genie Space | Natural language to SQL | Unity Catalog tables |

| Multi-Agent Supervisor (MAS) | Multi-agent orchestration | Model serving endpoints |

Prerequisites

Before creating Agent Bricks, ensure you have the required data:

For Knowledge Assistants

For Genie Spaces

For Multi-Agent Supervisors

MCP Tools

Knowledge Assistant Tools

create_or_update_ka - Create or update a Knowledge Assistant

get_ka - Get Knowledge Assistant details

delete_ka - Delete a Knowledge Assistant

Genie Space Tools

IMPORTANT: Before creating a Genie Space, you MUST first inspect the table schemas using get_table_details to understand the data. This allows you to:

Genie Space Creation Workflow:

  1. Call get_table_details(catalog, schema) to fetch table schemas
  2. Analyze the columns, data types, and relationships
  3. Select tables appropriate for the user's use case (prefer silver/gold over bronze)
  4. Generate 5-10 sample questions based on actual columns and business context
  5. Write a description explaining what users can explore
  6. Call create_or_update_genie with the prepared content

create_or_update_genie - Create or update a Genie Space for SQL exploration

get_genie - Get Genie Space details

delete_genie - Delete a Genie Space

Multi-Agent Supervisor Tools

create_or_update_mas - Create or update a Multi-Agent Supervisor

get_mas - Get Multi-Agent Supervisor details

delete_mas - Delete a Multi-Agent Supervisor

Typical Workflow

1. Generate Source Data

Before creating Agent Bricks, generate the required source data:

For KA (document Q&A):

1. Use `unstructured-pdf-generation` skill to generate PDFs
2. PDFs are saved to a Volume with companion JSON files (question/guideline pairs)

For Genie (SQL exploration):

1. Use `synthetic-data-generation` skill to create raw parquet data
2. Use `spark-declarative-pipelines` skill to create bronze/silver/gold tables

2. Create the Agent Brick

Use the appropriate create_or_update_* tool with your data sources.

3. Wait for Provisioning

Newly created KA and MAS tiles need time to provision. The endpoint status will progress:

4. Add Examples (Automatic)

For KA, if add_examples_from_volume=true, examples are automatically extracted from JSON files in the volume and added once the endpoint is ONLINE.

Best Practices

  1. Use meaningful names: Names are sanitized automatically (spaces become underscores)
  2. Provide descriptions: Helps users understand what the brick does
  3. Add instructions: Guide the AI's behavior and tone
  4. Include sample questions: Shows users how to interact with the brick
  5. Use the workflow: Generate data first, then create the brick

See Also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.