Skip to content

Commit 3037136

Browse files
committed
lint
1 parent a4536dc commit 3037136

1 file changed

Lines changed: 0 additions & 15 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: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,6 @@ def get_copilot_description():
5656
async def query(request: QueryRequest) -> EventSourceResponse:
5757
"""Query the Copilot with MCP tools support."""
5858

59-
for i, msg in enumerate(request.messages):
60-
content_preview = "NO CONTENT"
61-
if hasattr(msg, "content") and msg.content:
62-
try:
63-
if isinstance(msg.content, str):
64-
content_preview = msg.content[:100]
65-
else:
66-
content_preview = str(msg.content)[:100]
67-
except Exception as e:
68-
content_preview = f"ERROR_READING_CONTENT: {e}"
69-
if hasattr(msg, "data") and msg.data:
70-
for j, data_item in enumerate(msg.data):
71-
if hasattr(data_item, "items") and data_item.items:
72-
for k, item in enumerate(data_item.items):
73-
item_content = getattr(item, "content", "NO ITEM CONTENT")
7459

7560
# We only automatically fetch widget data if the last message is from a
7661
# human, and widgets have been explicitly added to the request.

0 commit comments

Comments
 (0)