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

Function currentReasoningID

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

Source from the content-addressed store, hash-verified

69}
70
71function currentReasoningID(state: ReturnType<typeof adapterState>, id: string | undefined) {
72 state.currentReasoningID = id ?? state.currentReasoningID ?? `reasoning-${state.reasoning++}`
73 return state.currentReasoningID
74}
75
76export function toLLMEvents(
77 state: ReturnType<typeof adapterState>,

Callers 1

toLLMEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected