MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / isValidAgentType

Function isValidAgentType

server/src/types.ts:12–14  ·  view source on GitHub ↗
(value: string | undefined | null)

Source from the content-addressed store, hash-verified

10 * Type guard to check if a string is a valid AgentType
11 */
12export function isValidAgentType(value: string | undefined | null): value is AgentType {
13 return typeof value === 'string' && VALID_AGENT_TYPES.includes(value as AgentType);
14}
15
16export interface FormatInfo {
17 name: string;

Callers 4

listAgentsMethod · 0.85
discoveredToAgentMethod · 0.85
createRegistryApiRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected