From 12f386913bdd2b2eb11864f59fede95159b5b5df Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Sun, 18 Feb 2024 18:14:41 +0800 Subject: [PATCH] feat: support index --- globals/tools.go | 1 + 1 file changed, 1 insertion(+) diff --git a/globals/tools.go b/globals/tools.go index a36ca30..f400dce 100644 --- a/globals/tools.go +++ b/globals/tools.go @@ -34,6 +34,7 @@ type ToolCallFunction struct { } type ToolCall struct { + Index *int `json:"index,omitempty"` Type string `json:"type"` Id ToolCallId `json:"id"` Function ToolCallFunction `json:"function"`