Fix potential infinite loop in reaction tool by marking results as handled.
This commit is contained in:
parent
c12c51593c
commit
337dfe960a
2 changed files with 4 additions and 3 deletions
|
|
@ -81,7 +81,8 @@ func (t *ReactionTool) Execute(ctx context.Context, args map[string]any) *ToolRe
|
|||
}
|
||||
|
||||
return &ToolResult{
|
||||
ForLLM: fmt.Sprintf("Reaction added to %s:%s message %s", channel, chatID, messageID),
|
||||
Silent: true,
|
||||
ForLLM: fmt.Sprintf("Reaction added to %s:%s message %s", channel, chatID, messageID),
|
||||
Silent: true,
|
||||
ResponseHandled: true,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ type ExecTool struct {
|
|||
allowPatterns []*regexp.Regexp
|
||||
customAllowPatterns []*regexp.Regexp
|
||||
allowedPathPatterns []*regexp.Regexp
|
||||
denyWritePaths []*regexp.Regexp
|
||||
denyWritePaths []*regexp.Regexp
|
||||
restrictToWorkspace bool
|
||||
allowRemote bool
|
||||
sessionManager *SessionManager
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue