MCPcopy Create free account
hub / github.com/AI45Lab/Code / pendingByToolId

Function pendingByToolId

sdk/node/examples/streaming/hitl_confirmation_loop.ts:29–32  ·  view source on GitHub ↗
(session: Session, toolId?: string | null)

Source from the content-addressed store, hash-verified

27}
28
29async function pendingByToolId(session: Session, toolId?: string | null): Promise<PendingConfirmation | null> {
30 const pending = await session.pendingConfirmations();
31 return pending.find(item => item.toolId === toolId) ?? pending[0] ?? null;
32}
33
34async function confirmFromCli(
35 session: Session,

Callers 1

confirmFromCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected