feat: 完成项目的成本分析报告
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
from decimal import Decimal
|
||||
from typing import Annotated, List
|
||||
|
||||
@@ -88,15 +89,15 @@ async def tool_project_analysis(project_name: Annotated[str, "项目名称"]) ->
|
||||
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 [
|
||||
return json.dumps([
|
||||
description,
|
||||
{
|
||||
"component": "ProjectCostAnalysis",
|
||||
"props": {
|
||||
"member_amount": member_amount,
|
||||
"cost_amount": cost_amount,
|
||||
"spent": project_cls.spent,
|
||||
"balance": project_cls.balance,
|
||||
"spent": str(project_cls.spent),
|
||||
"balance": str(project_cls.balance),
|
||||
}
|
||||
}
|
||||
]
|
||||
], ensure_ascii=False)
|
||||
|
||||
Reference in New Issue
Block a user