Skip to content

OpenAISkillStore

Namespace: Vercel.AI.OpenAI

public sealed class OpenAISkillStore : ISkillStore

OpenAI skill store.

Inheritance: object

Implements: ISkillStore

View source

public OpenAISkillStore(OpenAIProvider provider)

Creates a skill store.

Parameters

Name Type Description
provider OpenAIProvider

View source

public string Provider { get; }

Provider id.

Value: string

View source

UploadAsync(IReadOnlyList<OpenAISkillFile>, string?, CancellationToken)

Section titled “UploadAsync(IReadOnlyList<OpenAISkillFile>, string?, CancellationToken)”
public Task<OpenAISkillUpload> UploadAsync(IReadOnlyList<OpenAISkillFile> files, string? displayTitle, CancellationToken cancellationToken)

Uploads skill files as files[]. <code class=“paramref”>displayTitle</code> is warned and omitted.

Parameters

Name Type Description
files IReadOnlyList<OpenAISkillFile>
displayTitle string
cancellationToken CancellationToken

Returns: Task<OpenAISkillUpload>

View source

UploadSkillAsync(string, string, CancellationToken)

Section titled “UploadSkillAsync(string, string, CancellationToken)”
public Task<UploadedSkill> UploadSkillAsync(string name, string instructions, CancellationToken cancellationToken)

Uploads a skill document.

Parameters

Name Type Description
name string
instructions string
cancellationToken CancellationToken

Returns: Task<UploadedSkill>

View source

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