File tree Expand file tree Collapse file tree
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,21 +56,6 @@ def get_copilot_description():
5656async 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.
You can’t perform that action at this time.
0 commit comments