Open History to see the last commit
1// ============================================================================
2// New Tree-Shakeable Adapters (Recommended)
3// ============================================================================
4
5// Text (Chat) adapter - for chat/text completion
6export {
7 AnthropicTextAdapter,
8 anthropicText,
9 createAnthropicChat,
10 createAnthropicChatWithClient,
11 type AnthropicTextAdapterConfig,
12 type AnthropicTextConfig,
13 type AnthropicTextProviderOptions,
14} from './adapters/text'
15export type { AnthropicMessagesClient } from './utils/client'
16export type { AnthropicSystemPromptMetadata } from './text/text-provider-options'
17
18// Summarize - thin factory functions over @tanstack/ai's ChatStreamSummarizeAdapter
19export {
20 anthropicSummarize,
21 createAnthropicSummarize,
22 type AnthropicSummarizeConfig,
23 type AnthropicSummarizeModel,
24} from './adapters/summarize'
25
26// Files adapter - upload media to the Anthropic Files API (beta) by file_id
27export {
28 AnthropicFilesAdapter,
29 createAnthropicFiles,
30 anthropicFiles,
31 type AnthropicFilesConfig,
32} from './adapters/files'
33// ============================================================================
34// Type Exports
35// ============================================================================
36
37export type {
38 AnthropicChatModel,
39 AnthropicVertexChatModel,
40 AnthropicChatModelProviderOptionsByName,
41 AnthropicChatModelToolCapabilitiesByName,
42 AnthropicModelInputModalitiesByName,
43} from './model-meta'
44export {
45 ANTHROPIC_MODELS,
46 ANTHROPIC_VERTEX_CHAT_MODELS,
47 ANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS,
48} from './model-meta'
49export type {
50 AnthropicTextMetadata,
51 AnthropicImageMetadata,
52 AnthropicDocumentMetadata,
53 AnthropicAudioMetadata,
54 AnthropicVideoMetadata,
55 AnthropicMessageMetadataByModality,
56} from './message-types'
57
58// Export tool conversion utilities
59export { convertToolsToProviderFormat } from './tools/tool-converter'
60
61// Export tool types
62export type { AnthropicTool, CustomTool } from './tools/index'
63
64// Export provider usage types
65export type { AnthropicProviderUsageDetails } from './usage'