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

Method delegatedAPIKeyIDForSubagent

coderd/x/chatd/subagent.go:912–918  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

910}
911
912func (p *Server) delegatedAPIKeyIDForSubagent(ctx context.Context) (string, error) {
913 apiKeyID, ok := aibridge.DelegatedAPIKeyIDFromContext(ctx)
914 if !ok && p.shouldUseAIGatewayRouting() {
915 return "", xerrors.New("AI Gateway routing requires the active turn API key ID for subagent messages")
916 }
917 return apiKeyID, nil
918}
919
920func (p *Server) createChildSubagentChat(
921 ctx context.Context,

Callers 2

sendSubagentMessageMethod · 0.95

Calls 3

NewMethod · 0.65

Tested by

no test coverage detected