From 038b9be7dc7a16b1fd8f59adde4badef6e63abc2 Mon Sep 17 00:00:00 2001 From: "user.email" <1214422938@qq.com> Date: Fri, 27 Mar 2026 15:28:56 +0800 Subject: [PATCH] fix(react_with_interrupt): add omitempty to make phone number optional in tool schema --- compose/graph/react_with_interrupt/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/graph/react_with_interrupt/main.go b/compose/graph/react_with_interrupt/main.go index 06ad3a7..59a6f3e 100644 --- a/compose/graph/react_with_interrupt/main.go +++ b/compose/graph/react_with_interrupt/main.go @@ -147,7 +147,7 @@ func newChatModel(ctx context.Context) model.ToolCallingChatModel { type bookInput struct { Location string `json:"location"` PassengerName string `json:"passenger_name"` - PassengerPhoneNumber string `json:"passenger_phone_number"` + PassengerPhoneNumber string `json:"passenger_phone_number,omitempty"` } func newToolsNode(ctx context.Context) *compose.ToolsNode {