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

Method UpdateChatLastModelConfigByID

coderd/database/querier.go:1220–1220  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateChatLastModelConfigByIDParams)

Source from the content-addressed store, hash-verified

1218 // intentionally not touched to avoid reordering the chat list.
1219 UpdateChatLastInjectedContext(ctx context.Context, arg UpdateChatLastInjectedContextParams) (Chat, error)
1220 UpdateChatLastModelConfigByID(ctx context.Context, arg UpdateChatLastModelConfigByIDParams) (Chat, error)
1221 // Updates the last read message ID for a chat. This is used to track
1222 // which messages the owner has seen, enabling unread indicators.
1223 UpdateChatLastReadMessageID(ctx context.Context, arg UpdateChatLastReadMessageIDParams) error

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

TestAgentChatContextFunction · 0.52
TestChatsMethod · 0.52