feat: 使用组件来渲染项目成本分析报告的结果
This commit is contained in:
@@ -85,8 +85,16 @@ async def tool_project_analysis(project_name: Annotated[str, "项目名称"]) ->
|
|||||||
{member_cost_description}
|
{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,
|
"member_amount": member_amount,
|
||||||
"cost_amount": cost_amount,
|
"cost_amount": cost_amount,
|
||||||
"description": description,
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user