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

Function thinkingFrame

packages/cli/src/__tests__/runtime-host-session-driver.test.ts:1546–1569  ·  view source on GitHub ↗
(
  sequence: number,
  messageId: string,
  startOffset: number,
  text: string,
  complete = false,
)

Source from the content-addressed store, hash-verified

1544}
1545
1546function thinkingFrame(
1547 sequence: number,
1548 messageId: string,
1549 startOffset: number,
1550 text: string,
1551 complete = false,
1552): SubscriptionFrame {
1553 return {
1554 kind: 'subscription.session_delta',
1555 hostEpoch: 'host-1',
1556 subscriptionId: 'subscription-1',
1557 sequence,
1558 sessionId: 'session-1',
1559 delta: {
1560 kind: 'thinking',
1561 turnId: 'turn-1',
1562 runId: 'run-1',
1563 messageId,
1564 startOffset,
1565 text,
1566 ...(complete ? { complete: true } : {}),
1567 },
1568 };
1569}
1570
1571function projectionFrame(
1572 sequence: number,

Calls

no outgoing calls

Tested by

no test coverage detected