You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates a simple agent that receives the full list of widgets present on the current dashboard and passes that context directly to the LLM. The model decides which widget(s) to use and issues a function call accordingly.
3
+
This example demonstrates a simple agent that lists all widgets available on the current dashboard, showing their metadata and parameters in a structured format.
4
4
5
5
Key behaviors:
6
6
7
7
- Exposes `agents.json` with `widget-dashboard-search` enabled so the Workspace sends dashboard widget metadata (as `widgets.secondary`, etc.).
8
-
- If the user has selected primary widgets, the agent immediately issues a function call to fetch data for them.
9
-
- Otherwise, the agent does not select widgets heuristically. It appends the full dashboard widget list to the prompt and instructs the LLM to respond with a `get_widget_data` JSON function call when needed.
10
-
- Falls back to a plain LLM reply if no data is needed.
8
+
- Lists all widgets from both explicit context (primary) and dashboard context (secondary).
0 commit comments