Aligns the escape-hatch field name with `LLMEvent.providerMetadata` used
elsewhere in this package (and with AI SDK / pydantic-ai / LangChain
conventions for the same idea). Two parallel escape hatches having
different names was a wart.
The raw payload is now wrapped under the provider key — `{ openai: ... }`,
`{ anthropic: ... }`, `{ google: ... }`, `{ bedrock: ... }` — using the
existing `ProviderMetadata = Record<string, Record<string, unknown>>`
schema rather than a flat record. Same shape as
`LLMEvent.providerMetadata`, so consumers downstream can read both with
the same code.
Anthropic's `mergeUsage` merges the per-provider sub-record across
`message_start` and `message_delta` instead of spreading at the top level.
|
||
|---|---|---|
| .. | ||
| fixtures/recordings | ||
| lib | ||
| provider | ||
| adapter.test.ts | ||
| auth-options.types.ts | ||
| auth.test.ts | ||
| endpoint.test.ts | ||
| executor.test.ts | ||
| exports.test.ts | ||
| generate-object.test.ts | ||
| llm.test.ts | ||
| provider.types.ts | ||
| recorded-golden.ts | ||
| recorded-runner.ts | ||
| recorded-scenarios.ts | ||
| recorded-test.ts | ||
| recorded-utils.ts | ||
| recorded-websocket.ts | ||
| schema.test.ts | ||
| tool-runtime.test.ts | ||
| tool-stream.test.ts | ||
| tool.types.ts | ||