bitrouter_core/models/shared/provider.rs
1/// ProviderMetadata are additional outputs generated by the provider.
2///
3/// The outer record is keyed by the provider name, and the inner
4/// record is keyed by the provider-specific metadata key.
5///
6/// ```json
7/// {
8/// "anthropic": {
9/// "cacheControl": { "type": "ephemeral" }
10/// }
11/// }
12/// ```
13pub type ProviderMetadata = super::types::Record<String, super::types::JsonValue>;
14
15/// ProviderOptions are additional options that can be passed to the provider when generating content or calling a tool.
16///
17/// The outer record is keyed by the provider name, and the inner
18/// record is keyed by the provider-specific metadata key.
19///
20/// ```json
21/// {
22/// "anthropic": {
23/// "cacheControl": { "type": "ephemeral" }
24/// }
25/// }
26/// ```
27pub type ProviderOptions = super::types::Record<String, super::types::JsonValue>;