MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getQuerySourceForAgent

Function getQuerySourceForAgent

source code/utils/promptCategory.ts:18–30  ·  view source on GitHub ↗
(
  agentType: string | undefined,
  isBuiltInAgent: boolean,
)

Source from the content-addressed store, hash-verified

16 * @returns The agent prompt category string
17 */
18export function getQuerySourceForAgent(
19 agentType: string | undefined,
20 isBuiltInAgent: boolean,
21): QuerySource {
22 if (isBuiltInAgent) {
23 // TODO: avoid this cast
24 return agentType
25 ? (`agent:builtin:${agentType}` as QuerySource)
26 : 'agent:default'
27 } else {
28 return 'agent:custom'
29 }
30}
31
32/**
33 * Determines the prompt category based on output style settings.

Callers 2

resumeAgentBackgroundFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected