@sanity/agent-types
v0.0.78
Published
Type definitions for Sanity Agent
Maintainers
Readme
@sanity/agent-types
Type definitions for Sanity Agent
Installation
npm install @sanity/agent-typesUsage
This package provides TypeScript type definitions and Zod schemas for the Sanity Agent API.
import { Context, DocumentBase, IntentType } from '@sanity/agent-types';
// Use types in your applicationAvailable Types
The package includes the following categories of types:
- Context: Types for agent context and persistent context
- Document: Types for Sanity documents and document previews
- Intent: Types for agent intents and parameters
- Messages: Types for WebSocket communication messages
License
MIT
