Skip to main content
This release is 11 versions behind 2.0.0 — the latest version of @open-schemas/valibot. Jump to latest

Valibot schemas for the API of LLM providers.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
47%
Published
a week ago
indexanthropic
deno add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/anthropic";
npx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/anthropic";
yarn dlx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/anthropic";
pnpm dlx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/anthropic";
bunx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/anthropic";

This module contains valibot schemas for Anthropic API.

Examples

Example 1

import { parse } from "valibot";
import { CreateMessageRequest } from "@open-schemas/valibot/anthropic";

parse(CreateMessageRequest, {});

Type Aliases

T
v
Content
from anthropic
No documentation available
T
v
ContentBlockDeltaEvent
from anthropic
No documentation available
T
v
ContentBlockStartEvent
from anthropic
No documentation available
T
v
ContentBlockStopEvent
from anthropic
No documentation available
T
v
CreateMessageRequest
from anthropic
No documentation available
T
v
CreateMessageResponse
from anthropic
No documentation available
T
v
ImageContent
from anthropic
No documentation available
T
v
ImageContentSource
from anthropic
No documentation available
T
v
Message
from anthropic
No documentation available
T
v
MessageDeltaEvent
from anthropic
No documentation available
T
v
MessageStartEvent
from anthropic
No documentation available
T
v
MessageStopEvent
from anthropic
No documentation available
T
v
MessageUsage
from anthropic
No documentation available
T
v
StopReason
from anthropic
No documentation available
T
v
TextContent
from anthropic
No documentation available