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)
| 868 | // daemon's background worker. It can manage chats and access |
| 869 | // workspaces and deployment config, but nothing else. |
| 870 | func 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. |