Skip to content

Commit

Permalink
feat: support agent log
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 12, 2024
1 parent 041d6a8 commit 922110c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/types/entities/tool_entities/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
ToolResponseChunkTypeImage ToolResponseChunkType = "image"
ToolResponseChunkTypeImageLink ToolResponseChunkType = "image_link"
ToolResponseChunkTypeVariable ToolResponseChunkType = "variable"
ToolResponseChunkTypeLog ToolResponseChunkType = "log"
)

func IsValidToolResponseChunkType(fl validator.FieldLevel) bool {
Expand All @@ -31,7 +32,8 @@ func IsValidToolResponseChunkType(fl validator.FieldLevel) bool {
ToolResponseChunkTypeLink,
ToolResponseChunkTypeImage,
ToolResponseChunkTypeImageLink,
ToolResponseChunkTypeVariable:
ToolResponseChunkTypeVariable,
ToolResponseChunkTypeLog:
return true
default:
return false
Expand Down

0 comments on commit 922110c

Please sign in to comment.