The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Strip show_chart with malli.util/dissoc (#84502)
Chris Truterbec50220a7a5
diff --git a/src/metabase/metabot/tools/construct.clj b/src/metabase/metabot/tools/construct.cljindex b699db55101..bda67be343c 100644--- a/src/metabase/metabot/tools/construct.clj+++ b/src/metabase/metabot/tools/construct.clj@@ -2,6 +2,7 @@"Notebook query construction tool wrappers."(:require[malli.error :as me]+ [malli.util :as mut][metabase.agent-lib.representations :as repr][metabase.agent-lib.representations.repair :as repr.repair][metabase.agent-lib.representations.resolve :as repr.resolve]@@ -133,11 +134,8 @@"Returns the construct_notebook_query tool definition `tool` with `show_chart` left out of its `:schema`, so themodel is not told about the argument."[tool]- (update tool :schema (fn [[arrow [cat args-schema & more] output]]- [arrow- (into [cat (into [] (remove #(and (vector? %) (= :show_chart (first %)))) args-schema)]- more)- output])))+ (update tool :schema (fn [[arrow [cat args-schema] output]]+ [arrow [cat (mut/dissoc args-schema :show_chart)] output])));;; ---------------------------------------- Source resolution ----------------------------------------