Ctrl K
ComunidadGuías…

packages/ai/src/public.ts

Rama dev · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js"
export {
  ProtocolID,
  RouteID,
  ModelID,
  ProviderID,
  ResponseID,
  ContentBlockID,
  ToolCallID,
  JsonSchema,
  ProviderOptions,
  ProviderMetadata,
  HttpTimeout,
  RequestEncoding,
  GENERATION_KEYS,
  ReasoningEfforts,
  ReasoningEffort,
  LanguageModelCompatibility,
  LanguageModel,
  LanguageModelSchema,
  CacheTTL,
  CacheHint,
  CachePolicyObject,
  CachePolicy,
  MessageRole,
  SystemPart,
  TextPart,
  MediaPart,
  ToolResultValue,
  ToolOutput,
  ToolCallPart,
  ToolResultPart,
  ReasoningPart,
  CompactionPart,
  EffortPart,
  ContentPart,
  Message,
  SystemMessage,
  UserMessage,
  AssistantMessage,
  ToolMessage,
  Freeform,
  ToolDefinition,
  ToolNamespace,
  ToolEntry,
  ToolChoice,
  FinishReason,
  Usage,
  MediaUsage,
  CompactionResponse,
  CompactionCheckpointResponse,
  StepStart,
  TextStart,
  TextDelta,
  TextEnd,
  ReasoningStart,
  ReasoningDelta,
  ReasoningEnd,
  ToolInputStart,
  ToolInputDelta,
  ToolInputEnd,
  ToolInputError,
  ToolCall,
  ToolResult,
  FinishReasonDetails,
  StepFinish,
  Finish,
  MediaEvent,
  RawEvent,
  LLMEvent,
  LLMResponse,
  HttpContext,
  HttpRateLimitDetails,
  InvalidRequestError,
  UnsupportedOperationError,
  ProviderConfigurationError,
  AuthenticationError,
  RateLimitError,
  QuotaExceededError,
  ContentPolicyError,
  ProviderInternalError,
  TransportType,
  TransportOperation,
  TransportError,
  InvalidProviderOutputError,
  UnknownProviderError,
  TimeoutError,
  AIErrorReason,
  AIError,
} from "./schema/index.js"
export type {
  BaseRequest,
  ContentPartInput,
  GenerationOptionsFields,
  HttpOptions,
  RequestOptions,
  LanguageModelInput,
  LanguageModelProviderOptions,
  LLMRequest,
  MediaPartInput,
  RequestTimeout,
  TimeoutConfig,
  ToolDefinitionInput,
  ToolNamespaceInput,
  ToolNamespaceEntryInput,
  ToolEntryInput,
  TransportOptions,
  UsageInput,
} from "./schema/index.js"
export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js"
export type {
  ImageModelOptions,
  ImageOptions,
  ImageRequest,
  ImageRequestInput,
  ImageResolution,
  ImageRoute,
} from "./image.js"
export {
  ChoiceAnswer,
  ChoiceQuestion,
  ChoiceValue,
  DecisionAnswer,
  DecisionJsonPart,
  DecisionMediaPart,
  DecisionModel,
  DecisionModelCompatibility,
  DecisionModelSchema,
  DecisionPart,
  DecisionQuestion,
  DecisionResponse,
  DecisionTextPart,
  DecisionUsage,
  ErrorAnswer,
  ErrorReason,
  PredicateAnswer,
  PredicateQuestion,
  ScoreAnswer,
  ScoreQuestion,
} from "./decision.js"
export type {
  AnswerFor,
  AnswersFor,
  DecisionInput,
  DecisionMediaPartInput,
  DecisionModelOptions,
  DecisionOptions,
  DecisionPartInput,
  DecisionQuestions,
  DecisionRequest,
  DecisionRequestInput,
  DecisionResponseFor,
  DecisionModelRoute,
} from "./decision.js"
export { EmbeddingModel, EmbeddingModelSchema, EmbeddingResponse, EmbeddingUsage, EmbeddingValue } from "./embedding.js"
export type {
  EmbeddingInputType,
  EmbeddingModelOptions,
  EmbeddingModelRoute,
  EmbeddingOptions,
  EmbeddingRequest,
  EmbeddingRequestInput,
  EmbeddingValueInput,
} from "./embedding.js"
export { Media } from "./media.js"
export type {
  AwaitOptions as GenerationAwaitOptions,
  Event as GenerationEvent,
  Poll,
  Route as GenerationRoute,
  Snapshot as GenerationSnapshot,
  Status as GenerationStatus,
} from "./generation.js"
export type {
  ExecutableTool,
  Tool,
  ToolExecute,
  ToolExecuteContext,
  ToolInput,
  ToolInputType,
  ToolModelOutputInput,
  ToolOptions,
  ToolSchema,
  ToolToModelOutput,
} from "./tool.js"
export type { LLM } from "./llm.js"
export type { LLMLoopInput, LLMRequestInput } from "./llm.js"