From 27e7bd064982134a5e38bbcda4eac28602242715 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 24 Jun 2026 19:39:10 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20ToolProgress=20=E8=A1=A5=E5=85=A8=20Err?= =?UTF-8?q?or=20+=20Result=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/plugin-development.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api/plugin-development.md b/docs/api/plugin-development.md index 65895b9..7e3a390 100644 --- a/docs/api/plugin-development.md +++ b/docs/api/plugin-development.md @@ -176,10 +176,12 @@ type ComplexTool interface { } type ToolProgress struct { - ExecutionID string `json:"execution_id"` - Status string `json:"status"` // running / completed / failed / cancelled - Progress float64 `json:"progress"` // 0.0 ~ 1.0 - Message string `json:"message,omitempty"` + ExecutionID string `json:"execution_id"` + Status string `json:"status"` // running / completed / failed / cancelled + Progress float64 `json:"progress"` // 0.0 ~ 1.0 + Message string `json:"message,omitempty"` + Error string `json:"error,omitempty"` + Result *ToolResult `json:"result,omitempty"` } ```