From 616550df55a8ac207da59535782cc0708bd03fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=80=E4=B8=83?= Date: Tue, 31 Mar 2026 20:11:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20GraalCodeExecutor=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=8D=E9=9C=80=E8=A6=81=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=B6=E9=9D=99=E9=BB=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../agent/core/executor/GraalCodeExecutor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/assistant-agent-core/src/main/java/com/alibaba/assistant/agent/core/executor/GraalCodeExecutor.java b/assistant-agent-core/src/main/java/com/alibaba/assistant/agent/core/executor/GraalCodeExecutor.java index 3ae7cccf..c0bf5f8d 100644 --- a/assistant-agent-core/src/main/java/com/alibaba/assistant/agent/core/executor/GraalCodeExecutor.java +++ b/assistant-agent-core/src/main/java/com/alibaba/assistant/agent/core/executor/GraalCodeExecutor.java @@ -1291,6 +1291,16 @@ private void generatePythonMethod(StringBuilder code, String pythonFunctionName = toSafePythonIdentifier(functionName, "tool_"); + // Append **_extra_kwargs to absorb unexpected keyword arguments gracefully. + // This prevents TypeError when callers pass extra keys (e.g. from form data). + if (!parameters.equals("**kwargs")) { + if (parameters.isEmpty()) { + parameters = "**_extra_kwargs"; + } else { + parameters = parameters + ", **_extra_kwargs"; + } + } + // Generate method/function String indent = isClassMethod ? " " : ""; From 59e0b798aaa99e4e4a2589660ae5d0dafc9e9d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=80=E4=B8=83?= Date: Tue, 31 Mar 2026 21:13:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=BA0.2.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assistant-agent-autoconfigure/pom.xml | 2 +- assistant-agent-common/pom.xml | 2 +- assistant-agent-core/pom.xml | 2 +- assistant-agent-evaluation/pom.xml | 2 +- assistant-agent-extensions/pom.xml | 2 +- assistant-agent-prompt-builder/pom.xml | 2 +- assistant-agent-start/pom.xml | 2 +- pom.xml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assistant-agent-autoconfigure/pom.xml b/assistant-agent-autoconfigure/pom.xml index 6622d09f..2a41645c 100644 --- a/assistant-agent-autoconfigure/pom.xml +++ b/assistant-agent-autoconfigure/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-autoconfigure diff --git a/assistant-agent-common/pom.xml b/assistant-agent-common/pom.xml index e23f0c34..f2d39e8a 100644 --- a/assistant-agent-common/pom.xml +++ b/assistant-agent-common/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-common diff --git a/assistant-agent-core/pom.xml b/assistant-agent-core/pom.xml index 89fd711a..f2dc8e55 100644 --- a/assistant-agent-core/pom.xml +++ b/assistant-agent-core/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-core diff --git a/assistant-agent-evaluation/pom.xml b/assistant-agent-evaluation/pom.xml index fa693944..831fb8fb 100644 --- a/assistant-agent-evaluation/pom.xml +++ b/assistant-agent-evaluation/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-evaluation diff --git a/assistant-agent-extensions/pom.xml b/assistant-agent-extensions/pom.xml index f7f2dc77..642bed72 100644 --- a/assistant-agent-extensions/pom.xml +++ b/assistant-agent-extensions/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-extensions diff --git a/assistant-agent-prompt-builder/pom.xml b/assistant-agent-prompt-builder/pom.xml index 00efbb3b..41e62ad4 100644 --- a/assistant-agent-prompt-builder/pom.xml +++ b/assistant-agent-prompt-builder/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-prompt-builder diff --git a/assistant-agent-start/pom.xml b/assistant-agent-start/pom.xml index 750be049..6e0a18e3 100644 --- a/assistant-agent-start/pom.xml +++ b/assistant-agent-start/pom.xml @@ -6,7 +6,7 @@ com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 assistant-agent-start diff --git a/pom.xml b/pom.xml index 05c5982a..757aa759 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.alibaba.agent.assistant assistant-agent - 0.2.2 + 0.2.3 pom