MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / bridgeFor

Function bridgeFor

projects/runtime-node/src/agents.ts:263–268  ·  view source on GitHub ↗
(registry: RuntimeNodeAgentBridgeRegistry, params: unknown)

Source from the content-addressed store, hash-verified

261}
262
263function bridgeFor(registry: RuntimeNodeAgentBridgeRegistry, params: unknown): RuntimeNodeServerProtocolAgentBridge {
264 const id = providerId(params)
265 const bridge = registry.bridges.get(id)
266 if (!bridge) throw new Error(`Agent provider ${id} is not connected in server-protocol mode`)
267 return bridge
268}
269
270function requireCapability(bridge: RuntimeNodeServerProtocolAgentBridge, capability: keyof AgentProviderCapabilities): void {
271 if (!bridgeCapabilities(bridge)[capability]) {

Callers 1

Calls 2

providerIdFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected