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

Function latestServerProtocolTurnRuntime

projects/runtime-node/src/agents.ts:435–440  ·  view source on GitHub ↗
(server: RuntimeServer, providerId: string, threadId: string)

Source from the content-addressed store, hash-verified

433}
434
435function latestServerProtocolTurnRuntime(server: RuntimeServer, providerId: string, threadId: string) {
436 return server.supervisor
437 .list({ ownerType: "agent-server-turn", ownerId: threadId })
438 .filter((runtime) => runtime.scope.labels?.providerId === providerId)
439 .sort((a, b) => b.updatedAt.localeCompare(a.updatedAt))[0]
440}
441
442export function notifyRuntimeNodeAgentBridgeEvent(server: RuntimeServer, method: string, params: unknown): void {
443 const record = asRecord(params)

Calls 1

listMethod · 0.65

Tested by

no test coverage detected