Skip to content

OpenAISkillFile

Namespace: Vercel.AI.OpenAI

public sealed class OpenAISkillFile

One file uploaded as part of a skill.

Inheritance: object

View source

public OpenAISkillFile(string path, byte[] data, string mediaType)

Creates a skill file. <code class=“paramref”>path</code> is the multipart filename.

Parameters

Name Type Description
path string
data byte[]
mediaType string

View source

public byte[] Data { get; }

File bytes.

Value: byte[]

View source

public string MediaType { get; }

IANA media type.

Value: string

View source

public string Path { get; }

Relative path sent as the filename.

Value: string

View source

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