(server: RuntimeServer, providerId: string, threadId: string)
| 433 | } |
| 434 | |
| 435 | function 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 | |
| 442 | export function notifyRuntimeNodeAgentBridgeEvent(server: RuntimeServer, method: string, params: unknown): void { |
| 443 | const record = asRecord(params) |
no test coverage detected