fix(agents): drop unused response helper
This commit is contained in:
parent
eee59be0e2
commit
6c964e0dda
1 changed files with 0 additions and 15 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue