* Infer agent type from a capability profile. * Use this to avoid duplicating the type inference logic.
(profile: AgentCapabilityProfile)
| 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 | } |
no outgoing calls
no test coverage detected