test(agent): satisfy lint for tool feedback cleanup
This commit is contained in:
parent
610e9e3fe8
commit
a3edbcd05e
1 changed files with 17 additions and 4 deletions
|
|
@ -61,18 +61,28 @@ type recordingChannelManager struct {
|
||||||
dismissed []string
|
dismissed []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *recordingChannelManager) GetChannel(name string) (channels.Channel, bool) { return nil, false }
|
func (m *recordingChannelManager) GetChannel(name string) (channels.Channel, bool) {
|
||||||
func (m *recordingChannelManager) GetEnabledChannels() []string { return nil }
|
return nil, false
|
||||||
func (m *recordingChannelManager) InvokeTypingStop(channel, chatID string) {}
|
}
|
||||||
|
|
||||||
|
func (m *recordingChannelManager) GetEnabledChannels() []string {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *recordingChannelManager) InvokeTypingStop(channel, chatID string) {}
|
||||||
|
|
||||||
func (m *recordingChannelManager) SendMessage(ctx context.Context, msg bus.OutboundMessage) error {
|
func (m *recordingChannelManager) SendMessage(ctx context.Context, msg bus.OutboundMessage) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *recordingChannelManager) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error {
|
func (m *recordingChannelManager) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *recordingChannelManager) SendPlaceholder(ctx context.Context, channel, chatID string) bool {
|
func (m *recordingChannelManager) SendPlaceholder(ctx context.Context, channel, chatID string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *recordingChannelManager) DismissToolFeedback(
|
func (m *recordingChannelManager) DismissToolFeedback(
|
||||||
ctx context.Context, channel, chatID string, outboundCtx *bus.InboundContext,
|
ctx context.Context, channel, chatID string, outboundCtx *bus.InboundContext,
|
||||||
) {
|
) {
|
||||||
|
|
@ -237,8 +247,11 @@ func TestNewAgentLoop_DoesNotRegisterWebSearchTool_WhenNoReadyProviders(t *testi
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPublishResponseIfNeeded_DismissesToolFeedbackWhenMessageToolAlreadySent(t *testing.T) {
|
func TestPublishResponseIfNeeded_DismissesToolFeedbackWhenMessageToolAlreadySent(t *testing.T) {
|
||||||
al, _, _, _, cleanup := newTestAgentLoop(t)
|
al, msgBus, provider, sessions, cleanup := newTestAgentLoop(t)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
_ = msgBus
|
||||||
|
_ = provider
|
||||||
|
_ = sessions
|
||||||
|
|
||||||
cm := &recordingChannelManager{}
|
cm := &recordingChannelManager{}
|
||||||
al.channelManager = cm
|
al.channelManager = cm
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue