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

Method ListAIBridgeSessionThreads

coderd/database/querier.go:1048–1048  ·  view source on GitHub ↗

Returns all interceptions belonging to paginated threads within a session. Threads are paginated by (started_at, thread_id) cursor.

(ctx context.Context, arg ListAIBridgeSessionThreadsParams)

Source from the content-addressed store, hash-verified

1046 // Returns all interceptions belonging to paginated threads within a session.
1047 // Threads are paginated by (started_at, thread_id) cursor.
1048 ListAIBridgeSessionThreads(ctx context.Context, arg ListAIBridgeSessionThreadsParams) ([]ListAIBridgeSessionThreadsRow, error)
1049 // Returns paginated sessions with aggregated metadata, token counts, and
1050 // the most recent user prompt. A "session" is a logical grouping of
1051 // interceptions that share the same session_id (set by the client).

Callers 2

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

no test coverage detected