Skip to content

AnthropicSkills

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicSkills

Anthropic Skills API.

Inheritance: object

View source

AnthropicSkills(ProviderHttp, Func<string>, Func<IReadOnlyDictionary<string, string?>>, string)

Section titled “AnthropicSkills(ProviderHttp, Func<string>, Func<IReadOnlyDictionary<string, string?>>, string)”
public AnthropicSkills(ProviderHttp http, Func<string> baseUrl, Func<IReadOnlyDictionary<string, string?>> headers, string provider)

Creates a skills client.

Parameters

Name Type Description
http ProviderHttp
baseUrl Func<string>
headers Func<IReadOnlyDictionary<string, string>>
provider string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public string SpecificationVersion { get; }

Specification version.

Value: string

View source

UploadSkillAsync(IReadOnlyList<AnthropicSkillFile>, string?, CancellationToken)

Section titled “UploadSkillAsync(IReadOnlyList<AnthropicSkillFile>, string?, CancellationToken)”
public Task<AnthropicSkillUpload> UploadSkillAsync(IReadOnlyList<AnthropicSkillFile> files, string? displayTitle, CancellationToken cancellationToken)

Uploads skill files, then reads the latest version metadata.

Parameters

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

Returns: Task<AnthropicSkillUpload>

View source

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