UNPKG

@langchain/anthropic

Version:
41 lines (40 loc) 3.23 kB
import Anthropic$1 from "@anthropic-ai/sdk"; import { BindToolsInput } from "@langchain/core/language_models/chat_models"; //#region src/types.d.ts type AnthropicMessageCreateParams = Anthropic$1.MessageCreateParamsNonStreaming; type AnthropicStreamingMessageCreateParams = Anthropic$1.MessageCreateParamsStreaming; type AnthropicThinkingConfigParam = Anthropic$1.ThinkingConfigParam; type AnthropicContextManagementConfigParam = Anthropic$1.Beta.BetaContextManagementConfig; type AnthropicMessageStreamEvent = Anthropic$1.MessageStreamEvent; type AnthropicRequestOptions = Anthropic$1.RequestOptions; type AnthropicToolChoice = { type: "tool"; name: string; } | "any" | "auto" | "none" | string; type ChatAnthropicToolType = Anthropic$1.Messages.Tool | BindToolsInput; type ChatAnthropicOutputFormat = Anthropic$1.Messages.JSONOutputFormat; type AnthropicOutputConfig = Anthropic$1.Messages.OutputConfig; type AnthropicTextBlockParam = Anthropic$1.Messages.TextBlockParam; type AnthropicImageBlockParam = Anthropic$1.Messages.ImageBlockParam; type AnthropicToolUseBlockParam = Anthropic$1.Messages.ToolUseBlockParam; type AnthropicToolResultBlockParam = Anthropic$1.Messages.ToolResultBlockParam; type AnthropicDocumentBlockParam = Anthropic$1.Messages.DocumentBlockParam; type AnthropicThinkingBlockParam = Anthropic$1.Messages.ThinkingBlockParam; type AnthropicRedactedThinkingBlockParam = Anthropic$1.Messages.RedactedThinkingBlockParam; type AnthropicServerToolUseBlockParam = Anthropic$1.Messages.ServerToolUseBlockParam; type AnthropicWebSearchToolResultBlockParam = Anthropic$1.Messages.WebSearchToolResultBlockParam; type AnthropicWebSearchResultBlockParam = Anthropic$1.Messages.WebSearchResultBlockParam; type AnthropicSearchResultBlockParam = Anthropic$1.SearchResultBlockParam; type AnthropicContainerUploadBlockParam = Anthropic$1.Beta.BetaContainerUploadBlockParam; type AnthropicCompactionBlockParam = Anthropic$1.Beta.BetaCompactionBlockParam; type AnthropicMCPServerURLDefinition = Anthropic$1.Beta.Messages.BetaRequestMCPServerURLDefinition; type ChatAnthropicContentBlock = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicToolUseBlockParam | AnthropicToolResultBlockParam | AnthropicDocumentBlockParam | AnthropicThinkingBlockParam | AnthropicRedactedThinkingBlockParam | AnthropicServerToolUseBlockParam | AnthropicWebSearchToolResultBlockParam | AnthropicWebSearchResultBlockParam | AnthropicSearchResultBlockParam | AnthropicContainerUploadBlockParam | AnthropicCompactionBlockParam; /** * A type representing additional parameters that can be passed to the * Anthropic API. */ type Kwargs = Record<string, any>; type AnthropicInvocationParams = Omit<AnthropicMessageCreateParams | AnthropicStreamingMessageCreateParams, "messages"> & Kwargs; //#endregion export { AnthropicContextManagementConfigParam, AnthropicInvocationParams, AnthropicMCPServerURLDefinition, AnthropicMessageCreateParams, AnthropicMessageStreamEvent, AnthropicOutputConfig, AnthropicRequestOptions, AnthropicStreamingMessageCreateParams, AnthropicThinkingConfigParam, AnthropicToolChoice, ChatAnthropicContentBlock, ChatAnthropicOutputFormat, ChatAnthropicToolType, Kwargs }; //# sourceMappingURL=types.d.ts.map