BI Chat Payload Types (types/payloads.go)

iota-sdk · pkg/bichat/types/payloads.go · go · Apache-2.0
analytics, dev-tools, database, lang:go, tag:payloads, tag:bi-chat

Defines JSON payload structs for BI chat formatters and tools, covering query results, explain plans, schema introspection, artifacts, and errors. Reuse for typed tool/formatter payloads.

// Source: https://github.com/iota-uz/iota-sdk | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package types

// QueryResultFormatPayload is the payload for the "query-result" formatter.
// It extends the codec payload with presentation metadata.
type QueryResultFormatPayload struct {
	Query           string   `json:"query"`
	ExecutedSQL     string   `json:"executed_sql"`
	DurationMs      int64    `json:"duration_ms"`
	Columns         []string `json:"columns"`
	Rows            [][]any  `json:"rows"`
	RowCount        int      `json:"row_count"`
	Limit           int      `json:"limit"`
	Truncated       bool     `json:"truncated"`
	TruncatedReason string   `json:"truncated_reason,omi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key