fix(prompts): fix default argument handling in tool calls

This commit is contained in:
Novice
2026-02-10 18:31:34 +08:00
parent cbcb5a71c3
commit aba1752e6c
2 changed files with 4 additions and 3 deletions

View File

@ -315,7 +315,7 @@ def _build_messages_from_trace(
type="function",
function=AssistantPromptMessage.ToolCall.ToolCallFunction(
name=tc.name or "",
arguments=tc.arguments or "",
arguments=tc.arguments or "{}",
),
)
for tc in model_output.tool_calls