MCPcopy Index your code
hub / github.com/coder/coder / GetActiveChatsByAgentID

Method GetActiveChatsByAgentID

coderd/database/querier.go:303–303  ·  view source on GitHub ↗
(ctx context.Context, agentID uuid.UUID)

Source from the content-addressed store, hash-verified

301 GetAPIKeysLastUsedAfter(ctx context.Context, lastUsed time.Time) ([]APIKey, error)
302 GetActiveAISeatCount(ctx context.Context) (int64, error)
303 GetActiveChatsByAgentID(ctx context.Context, agentID uuid.UUID) ([]Chat, error)
304 GetActivePresetPrebuildSchedules(ctx context.Context) ([]TemplateVersionPresetPrebuildSchedule, error)
305 GetActiveUserCount(ctx context.Context, includeSystem bool) (int64, error)
306 GetActiveWorkspaceBuildsByTemplateID(ctx context.Context, templateID uuid.UUID) ([]WorkspaceBuild, error)

Callers 5

resolveAgentChatFunction · 0.65
TestChatsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 3

TestChatsMethod · 0.52