MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / explainQueryFromOptions

Function explainQueryFromOptions

internal/provenance/explain.go:371–381  ·  view source on GitHub ↗
(opts ExplainOptions)

Source from the content-addressed store, hash-verified

369}
370
371func explainQueryFromOptions(opts ExplainOptions) ExplainQuery {
372 depth := opts.Depth
373 if depth <= 0 {
374 depth = 2
375 }
376 limit := opts.Limit
377 if limit <= 0 {
378 limit = 100
379 }
380 return ExplainQuery{Depth: depth, Limit: limit, Cursor: opts.Cursor}
381}
382
383func enrichExplain(db *sql.DB, manifest *ExplainManifest, runID, targetID string, ids map[string]string, depth, limit int) error {
384 if runID == "" && manifest.Target.Run != "" {

Callers 1

BuildExplainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected