MCPcopy Create free account
hub / github.com/apache/maka / decodeTurnQueryInput

Function decodeTurnQueryInput

packages/runtime-host/src/protocol/turn.ts:452–458  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

450}
451
452function decodeTurnQueryInput(value: unknown): TurnQueryInput {
453 const record = requireExactRecord(value, 'turn.query input', ['sessionId', 'turnId']);
454 return {
455 sessionId: requireEntityId(record.sessionId, 'sessionId'),
456 turnId: requireEntityId(record.turnId, 'turnId'),
457 };
458}
459
460function decodeTurnStopInput(value: unknown): TurnStopInput {
461 const record = requireExactRecord(value, 'turn.stop input', ['sessionId', 'turnId', 'runId']);

Callers

nothing calls this directly

Calls 2

requireEntityIdFunction · 0.85
requireExactRecordFunction · 0.70

Tested by

no test coverage detected