fix(agents): drop unused response helper

This commit is contained in:
Anton Bogdanovich 2026-05-07 15:00:58 -07:00
parent eee59be0e2
commit 6c964e0dda

View file

@ -25,21 +25,6 @@ func (al *AgentLoop) maybePublishError(ctx context.Context, channel, chatID, ses
return true
}
func (al *AgentLoop) publishResponseOrError(
ctx context.Context,
channel, chatID, sessionKey string,
response string,
err error,
) {
if err != nil {
if !al.maybePublishError(ctx, channel, chatID, sessionKey, err) {
return
}
response = ""
}
al.PublishResponseIfNeeded(ctx, channel, chatID, sessionKey, response)
}
func (al *AgentLoop) PublishResponseIfNeeded(ctx context.Context, channel, chatID, sessionKey, response string) {
al.publishResponseWithContextIfNeeded(ctx, channel, chatID, sessionKey, response, nil)
}