Explorar el Código

feat: implement prompt message tool call

Yeuoly hace 10 meses
padre
commit
4a761aa5b2
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      internal/types/entities/model_entities/llm.go

+ 6 - 1
internal/types/entities/model_entities/llm.go

@@ -97,7 +97,12 @@ type PromptMessageContent struct {
 }
 
 type PromptMessageToolCall struct {
-	// TODO:
+	ID       string `json:"id"`
+	Type     string `json:"type"`
+	Function struct {
+		Name      string `json:"name"`
+		Arguments string `json:"arguments"`
+	} `json:"function"`
 }
 
 func init() {