A function that converts data from one format to another.
This is commonly used for transforming message content blocks between different provider-specific formats and standardized internal representations.
// Convert from OpenAI format to standard format
const converter: Converter<OpenAIBlock, ContentBlock.Standard> = (block) => {
return { type: "text", text: block.text };
};