Skip to content

Commit 038b9be

Browse files
committed
fix(react_with_interrupt): add omitempty to make phone number optional in tool schema
1 parent 0b4e592 commit 038b9be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compose/graph/react_with_interrupt

compose/graph/react_with_interrupt/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func newChatModel(ctx context.Context) model.ToolCallingChatModel {
147147
type bookInput struct {
148148
Location string `json:"location"`
149149
PassengerName string `json:"passenger_name"`
150-
PassengerPhoneNumber string `json:"passenger_phone_number"`
150+
PassengerPhoneNumber string `json:"passenger_phone_number,omitempty"`
151151
}
152152

153153
func newToolsNode(ctx context.Context) *compose.ToolsNode {

0 commit comments

Comments
 (0)