# llm_call_trace_io.dspy — 「查看IO」弹窗内容(薄代理;业务逻辑在 pipeline_llm.init.llm_call_trace_io) # 入参: id(trace 行主键,列表页 toolbar selected_row 自动注入行数据) # 返回: TabPanel(上下文摘要/请求原文/响应原文)——外层 PopupWindow 壳由列表页 # binds 的 popup_options 生成,此处只返回内容 widget(返回 PopupWindow 会套娃) uid = await get_user() if not uid: return {"widgettype": "Message", "options": {"title": "提示", "message": "请先登录", "cwidth": 20, "cheight": 8, "timeout": 3}} user_org = await get_userorgid() or '0' result = await llm_call_trace_io(dict(params_kw or {}), str(user_org)) return result