generate_dq_rule_sql

package
v0.0.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package generate_dq_rule_sql implements the generate_dq_rule_sql MCP tool: it turns a plain-language description of a data quality check into rule SQL, so a rule can be authored without writing SQL by hand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTool

func NewTool(collibraClient *http.Client) *chip.Tool[Input, Output]

NewTool returns the registered tool.

Types

type Input

type Input struct {
	EdgeSiteID   string   `` /* 171-byte string literal not displayed */
	ConnectionID string   `` /* 162-byte string literal not displayed */
	JobName      string   `` /* 174-byte string literal not displayed */
	Columns      []string `` /* 131-byte string literal not displayed */
	Query        string   `` /* 135-byte string literal not displayed */
}

Input is the tool's typed input. edgeSiteId/connectionId come from prepare_create_dq_job; the table is identified by jobName.

type Output

type Output struct {
	Status   OutputStatus `` /* 131-byte string literal not displayed */
	Message  string       `json:"message" jsonschema:"Human-readable summary."`
	SQLQuery string       `` /* 188-byte string literal not displayed */
}

Output is the typed response.

type OutputStatus

type OutputStatus string

OutputStatus is the overall outcome of a generate_dq_rule_sql call.

const (
	// StatusSuccess means SQL was generated.
	StatusSuccess OutputStatus = "success"
	// StatusValidationError means the inputs failed validation before any call.
	StatusValidationError OutputStatus = "validation_error"
	// StatusError means generation failed due to a downstream DQ error.
	StatusError OutputStatus = "error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL