Function
currentTextID
(state: ReturnType<typeof adapterState>, id: string | undefined)
Source from the content-addressed store, hash-verified
| 64 | } |
| 65 | |
| 66 | function currentTextID(state: ReturnType<typeof adapterState>, id: string | undefined) { |
| 67 | state.currentTextID = id ?? state.currentTextID ?? `text-${state.text++}` |
| 68 | return state.currentTextID |
| 69 | } |
| 70 | |
| 71 | function currentReasoningID(state: ReturnType<typeof adapterState>, id: string | undefined) { |
| 72 | state.currentReasoningID = id ?? state.currentReasoningID ?? `reasoning-${state.reasoning++}` |
Tested by
no test coverage detected