From 2d351d24bb67aff40c6f40f34c42d87e163b1c81 Mon Sep 17 00:00:00 2001 From: martsforever Date: Wed, 10 Sep 2025 22:20:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=9D=A5=E6=B8=B2=E6=9F=93=E9=A1=B9=E7=9B=AE=E6=88=90=E6=9C=AC?= =?UTF-8?q?=E5=88=86=E6=9E=90=E6=8A=A5=E5=91=8A=E7=9A=84=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tools/tool_project_analysis.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/app/tools/tool_project_analysis.py b/app/tools/tool_project_analysis.py index 0deca18..3e2cc49 100644 --- a/app/tools/tool_project_analysis.py +++ b/app/tools/tool_project_analysis.py @@ -85,8 +85,16 @@ async def tool_project_analysis(project_name: Annotated[str, "项目名称"]) -> {member_cost_description} """ - return { - "member_amount": member_amount, - "cost_amount": cost_amount, - "description": description, - } + 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, + } + } + ]