The name of the provider type that corresponds to the provider-specific content block types that this converter supports.
Optional
fromConvert from a standard audio block to a provider's proprietary audio block format.
The standard audio block to convert.
The provider audio block.
Optional
fromConvert from a standard file block to a provider's proprietary file block format.
The standard file block to convert.
The provider file block.
Optional
fromConvert from a standard image block to a provider's proprietary image block format.
The standard image block to convert.
The provider image block.
Optional
fromConvert from a standard text block to a provider's proprietary text block format.
The standard text block to convert.
The provider text block.
Utility interface for converting between standard and provider-specific data content blocks, to be used when implementing chat model providers.
Meant to be used with convertToProviderContentBlock and convertToStandardContentBlock rather than being consumed directly.
Deprecated
Don't use data content blocks. Use ContentBlock.Multimodal.Data instead.