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

Method inferTypeFromProfile

server/src/capabilities.ts:300–305  ·  view source on GitHub ↗

* Infer agent type from a capability profile. * Use this to avoid duplicating the type inference logic.

(profile: AgentCapabilityProfile)

Source from the content-addressed store, hash-verified

298 * Use this to avoid duplicating the type inference logic.
299 */
300 inferTypeFromProfile(profile: AgentCapabilityProfile): 'buying' | 'creative' | 'signals' | 'unknown' {
301 if (profile.standard_operations) return 'buying';
302 if (profile.creative_capabilities) return 'creative';
303 if (profile.signals_capabilities) return 'signals';
304 return 'unknown';
305 }
306}

Callers 2

refreshAgentSnapshotsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected