There was an error while loading. Please reload this page.
1 parent 4f55ebb commit 5a8e608Copy full SHA for 5a8e608
1 file changed
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py
@@ -59,11 +59,7 @@ async def query(request: QueryRequest) -> EventSourceResponse:
59
# We only automatically fetch widget data if the last message is from a
60
# human, and widgets have been explicitly added to the request.
61
last_message = request.messages[-1]
62
- if (
63
- last_message.role == "human"
64
- and request.widgets
65
- and request.widgets.primary
66
- ):
+ if last_message.role == "human" and request.widgets and request.widgets.primary:
67
widget_requests: list[WidgetRequest] = []
68
# Note: If we wanted to iterate through the widgets on the dashboard
69
# rather than on the widgets on the explicit context
0 commit comments