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