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
|
|
@ -83,5 +83,6 @@ func (t *ReactionTool) Execute(ctx context.Context, args map[string]any) *ToolRe
|
||||||
return &ToolResult{
|
return &ToolResult{
|
||||||
ForLLM: fmt.Sprintf("Reaction added to %s:%s message %s", channel, chatID, messageID),
|
ForLLM: fmt.Sprintf("Reaction added to %s:%s message %s", channel, chatID, messageID),
|
||||||
Silent: true,
|
Silent: true,
|
||||||
|
ResponseHandled: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue