MCPcopy Create free account
hub / github.com/anomalyco/opencode / currentTextID

Function currentTextID

packages/opencode/src/session/llm/ai-sdk.ts:66–69  ·  view source on GitHub ↗
(state: ReturnType<typeof adapterState>, id: string | undefined)

Source from the content-addressed store, hash-verified

64}
65
66function currentTextID(state: ReturnType<typeof adapterState>, id: string | undefined) {
67 state.currentTextID = id ?? state.currentTextID ?? `text-${state.text++}`
68 return state.currentTextID
69}
70
71function currentReasoningID(state: ReturnType<typeof adapterState>, id: string | undefined) {
72 state.currentReasoningID = id ?? state.currentReasoningID ?? `reasoning-${state.reasoning++}`

Callers 1

toLLMEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected