OpenAISkillStore
Namespace: Vercel.AI.OpenAI
public sealed class OpenAISkillStore : ISkillStoreOpenAI skill store.
Inheritance: object
Implements: ISkillStore
Constructors
Section titled “Constructors”OpenAISkillStore(OpenAIProvider)
Section titled “OpenAISkillStore(OpenAIProvider)”public OpenAISkillStore(OpenAIProvider provider)Creates a skill store.
Parameters
| Name | Type | Description |
|---|---|---|
provider |
OpenAIProvider |
Properties
Section titled “Properties”Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
Methods
Section titled “Methods”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>
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>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product