FileParts
Namespace: Vercel.AI.Prompt
public static class FilePartsFile-part conversion. Maps to convertToLanguageModelV4FilePart.
Inheritance: object
Methods
Section titled “Methods”ConvertToLanguageModelV4FilePart(FilePartInput)
Section titled “ConvertToLanguageModelV4FilePart(FilePartInput)”public static LanguageModelFilePart ConvertToLanguageModelV4FilePart(FilePartInput content)Converts a legacy or tagged file value into the v4 provider shape.
Parameters
| Name | Type | Description |
|---|---|---|
content |
FilePartInput |
Returns: LanguageModelFilePart
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product