MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / query_data

Function query_data

apps/agent/src/query.py:12–16  ·  view source on GitHub ↗

Query the database, takes natural language. Always call before showing a chart or graph.

(query: str)

Source from the content-addressed store, hash-verified

10
11@tool
12def query_data(query: str):
13 """
14 Return the bundled sample business dataset, NOT live business data.
15 The query is context only; this tool returns all rows without filtering.
16 Use only when the user wants sample data. Do not call for unrelated charts.
17 """
18 return {
19 "source": "Bundled db.csv sample dataset",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected