feat: add rebuild and restart functionality for agents, including build process and status reporting
This commit is contained in:
@@ -259,6 +259,12 @@ func (a *Agent) runLLM(ctx context.Context, msgCtx decision.MessageContext) (str
|
||||
"call_id", tc.ID,
|
||||
)
|
||||
|
||||
// Notify the room that a tool is being called
|
||||
toolNotice := fmt.Sprintf("🔨 <em>%s</em>", tc.Name)
|
||||
if err := a.matrix.SendMarkdown(ctx, msgCtx.RoomID, toolNotice); err != nil {
|
||||
a.logger.Warn("failed to send tool call notice", "tool", tc.Name, "err", err)
|
||||
}
|
||||
|
||||
result := a.toolReg.Execute(ctx, tc.Name, tc.Arguments)
|
||||
|
||||
output := result.Output
|
||||
|
||||
Reference in New Issue
Block a user