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

Function providerMeta

packages/opencode/src/session/message-v2.ts:125–129  ·  view source on GitHub ↗
(metadata: Record<string, any> | undefined)

Source from the content-addressed store, hash-verified

123}
124
125function providerMeta(metadata: Record<string, any> | undefined) {
126 if (!metadata) return undefined
127 const { providerExecuted: _, ...rest } = metadata
128 return Object.keys(rest).length > 0 ? rest : undefined
129}
130
131export const toModelMessagesEffect = Effect.fnUntraced(function* (
132 input: WithParts[],

Callers 1

message-v2.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected