Skip to content

Commit 5a8e608

Browse files
committed
ruff
1 parent 4f55ebb commit 5a8e608

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • 38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools

38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ async def query(request: QueryRequest) -> EventSourceResponse:
5959
# We only automatically fetch widget data if the last message is from a
6060
# human, and widgets have been explicitly added to the request.
6161
last_message = request.messages[-1]
62-
if (
63-
last_message.role == "human"
64-
and request.widgets
65-
and request.widgets.primary
66-
):
62+
if last_message.role == "human" and request.widgets and request.widgets.primary:
6763
widget_requests: list[WidgetRequest] = []
6864
# Note: If we wanted to iterate through the widgets on the dashboard
6965
# rather than on the widgets on the explicit context

0 commit comments

Comments
 (0)