@tool def sql_investigate(query: str) -> dict: try: df = con.execute(query).df() head = df.head(30) return { “rows”: int(len(df)), “columns”: list(df.columns), “preview”: head.to_dict(orient=”records”) } except Exception as e: return {“error”: str(e)} @tool …
Tag:
reviews
-
-
We did the math on the energy footprint of AI. Here’s the story you may not have heard. Understanding the energy use of AI was a big global conversation in …
