瀏覽代碼

feat: support agent log

Yeuoly 7 月之前
父節點
當前提交
922110ce23
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      internal/types/entities/tool_entities/tool.go

+ 3 - 1
internal/types/entities/tool_entities/tool.go

@@ -18,6 +18,7 @@ const (
 	ToolResponseChunkTypeImage     ToolResponseChunkType = "image"
 	ToolResponseChunkTypeImageLink ToolResponseChunkType = "image_link"
 	ToolResponseChunkTypeVariable  ToolResponseChunkType = "variable"
+	ToolResponseChunkTypeLog       ToolResponseChunkType = "log"
 )
 
 func IsValidToolResponseChunkType(fl validator.FieldLevel) bool {
@@ -31,7 +32,8 @@ func IsValidToolResponseChunkType(fl validator.FieldLevel) bool {
 		ToolResponseChunkTypeLink,
 		ToolResponseChunkTypeImage,
 		ToolResponseChunkTypeImageLink,
-		ToolResponseChunkTypeVariable:
+		ToolResponseChunkTypeVariable,
+		ToolResponseChunkTypeLog:
 		return true
 	default:
 		return false