feat: 使用组件来渲染项目成本分析报告的结果

This commit is contained in:
martsforever
2025-09-10 22:20:31 +08:00
parent 1036a124dd
commit 2d351d24bb
+10 -2
View File
@@ -85,8 +85,16 @@ async def tool_project_analysis(project_name: Annotated[str, "项目名称"]) ->
{member_cost_description}
"""
return {
member_amount = {k: str(v) for k, v in member_amount.items()}
cost_amount = {k: str(v) for k, v in cost_amount.items()}
return [
description,
{
"component": "ANY",
"props": {
"member_amount": member_amount,
"cost_amount": cost_amount,
"description": description,
}
}
]