Skip to content

FileParts

Namespace: Vercel.AI.Prompt

public static class FileParts

File-part conversion. Maps to convertToLanguageModelV4FilePart.

Inheritance: object

View source

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

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product