(metadata: Record<string, any> | undefined)
| 123 | } |
| 124 | |
| 125 | function 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 | |
| 131 | export const toModelMessagesEffect = Effect.fnUntraced(function* ( |
| 132 | input: WithParts[], |