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

Function AsChatd

coderd/database/dbauthz/dbauthz.go:870–872  ·  view source on GitHub ↗

AsChatd returns a context with an actor scoped to the chat daemon's background worker. It can manage chats and access workspaces and deployment config, but nothing else.

(ctx context.Context)

Source from the content-addressed store, hash-verified

868// daemon's background worker. It can manage chats and access
869// workspaces and deployment config, but nothing else.
870func AsChatd(ctx context.Context) context.Context {
871 return As(ctx, subjectChatd)
872}
873
874// AsAIProviderMetadataReader returns a context with an actor that can read
875// AI provider metadata and provider-key presence.

Callers 15

NewFunction · 0.92
TestGetChatFunction · 0.92
listChatModelConfigsMethod · 0.92
createChatModelConfigMethod · 0.92
updateChatModelConfigMethod · 0.92
TestOIDCMCPTokenSourceFunction · 0.92
TestAsChatdFunction · 0.92

Calls 1

AsFunction · 0.85

Tested by 8

TestGetChatFunction · 0.74
TestOIDCMCPTokenSourceFunction · 0.74
TestAsChatdFunction · 0.74
chatdTestContextFunction · 0.74
TestStartWorkspaceFunction · 0.74