export declare const CreateMessageRequestSchema: { readonly required: readonly ["model", "messages", "max_tokens"]; readonly type: "object"; readonly properties: { readonly model: { readonly title: "Model"; readonly anyOf: readonly [{ readonly type: "string"; readonly description: "The ID of the model to use for this request."; }, { readonly title: "Models"; readonly enum: readonly ["claude-3-5-sonnet-latest", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-20240620", "claude-3-opus-latest", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2.1", "claude-2.0", "claude-instant-1.2"]; readonly type: "string"; readonly description: "Available models. Mind that the list may not be exhaustive nor up-to-date.\n"; }]; readonly description: "The model that will complete your prompt.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional\ndetails and options.\n"; readonly example: "claude-3-5-sonnet-20241022"; }; readonly messages: { readonly minItems: 1; readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/Message"; }; readonly description: "Input messages.\n\nOur models are trained to operate on alternating `user` and `assistant`\nconversational turns. When creating a new `Message`, you specify the prior\nconversational turns with the `messages` parameter, and the model then generates\nthe next `Message` in the conversation.\n\nEach input message must be an object with a `role` and `content`. You can\nspecify a single `user`-role message, or you can include multiple `user` and\n`assistant` messages. The first message must always use the `user` role.\n\nIf the final message uses the `assistant` role, the response content will\ncontinue immediately from the content in that message. This can be used to\nconstrain part of the model's response.\n\nSee [message content](https://docs.anthropic.com/en/api/messages-content) for\ndetails on how to construct valid message objects.\n\nExample with a single `user` message:\n\n```json\n[{ \"role\": \"user\", \"content\": \"Hello, Claude\" }]\n```\n\nExample with multiple conversational turns:\n\n```json\n[\n { \"role\": \"user\", \"content\": \"Hello there.\" },\n { \"role\": \"assistant\", \"content\": \"Hi, I'm Claude. How can I help you?\" },\n { \"role\": \"user\", \"content\": \"Can you explain LLMs in plain English?\" }\n]\n```\n\nExample with a partially-filled response from Claude:\n\n```json\n[\n {\n \"role\": \"user\",\n \"content\": \"What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun\"\n },\n { \"role\": \"assistant\", \"content\": \"The best answer is (\" }\n]\n```\n\nEach input message `content` may be either a single `string` or an array of\ncontent blocks, where each block has a specific `type`. Using a `string` for\n`content` is shorthand for an array of one content block of type `\"text\"`. The\nfollowing input messages are equivalent:\n\n```json\n{ \"role\": \"user\", \"content\": \"Hello, Claude\" }\n```\n\n```json\n{ \"role\": \"user\", \"content\": [{ \"type\": \"text\", \"text\": \"Hello, Claude\" }] }\n```\n\nStarting with Claude 3 models, you can also send image content blocks:\n\n```json\n{\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"image\",\n \"source\": {\n \"type\": \"base64\",\n \"media_type\": \"image/jpeg\",\n \"data\": \"/9j/4AAQSkZJRg...\"\n }\n },\n { \"type\": \"text\", \"text\": \"What is in this image?\" }\n ]\n}\n```\n\nWe currently support the `base64` source type for images, and the `image/jpeg`,\n`image/png`, `image/gif`, and `image/webp` media types.\n\nSee [examples](https://docs.anthropic.com/en/api/messages-examples) for more\ninput examples.\n\nNote that if you want to include a\n[system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use\nthe top-level `system` parameter — there is no `\"system\"` role for input\nmessages in the Messages API.\n"; }; readonly max_tokens: { readonly type: "integer"; readonly description: "The maximum number of tokens to generate before stopping.\n\nNote that our models may stop _before_ reaching this maximum. This parameter\nonly specifies the absolute maximum number of tokens to generate.\n\nDifferent models have different maximum values for this parameter. See\n[models](https://docs.anthropic.com/en/docs/models-overview) for details.\n"; }; readonly metadata: { readonly $ref: "#/components/schemas/CreateMessageRequestMetadata"; }; readonly stop_sequences: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly description: "Custom text sequences that will cause the model to stop generating.\n\nOur models will normally stop when they have naturally completed their turn,\nwhich will result in a response `stop_reason` of `\"end_turn\"`.\n\nIf you want the model to stop generating when it encounters custom strings of\ntext, you can use the `stop_sequences` parameter. If the model encounters one of\nthe custom sequences, the response `stop_reason` value will be `\"stop_sequence\"`\nand the response `stop_sequence` value will contain the matched stop sequence.\n"; }; readonly system: { readonly type: "string"; readonly oneOf: readonly [{ readonly type: "string"; readonly description: "A single text block."; }, { readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/Block"; }; readonly description: "An array of content blocks."; }]; readonly description: "System prompt.\n\nA system prompt is a way of providing context and instructions to Claude, such\nas specifying a particular goal or role. See our\n[guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).\n"; }; readonly temperature: { readonly type: "number"; readonly description: "Amount of randomness injected into the response.\n\nDefaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`\nfor analytical / multiple choice, and closer to `1.0` for creative and\ngenerative tasks.\n\nNote that even with `temperature` of `0.0`, the results will not be fully\ndeterministic.\n"; }; readonly tool_choice: { readonly $ref: "#/components/schemas/ToolChoice"; }; readonly tools: { readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/Tool"; }; readonly description: "Definitions of tools that the model may use.\n\nIf you include `tools` in your API request, the model may return `tool_use`\ncontent blocks that represent the model's use of those tools. You can then run\nthose tools using the tool input generated by the model and then optionally\nreturn results back to the model using `tool_result` content blocks.\n\nEach tool definition includes:\n\n- `name`: Name of the tool.\n- `description`: Optional, but strongly-recommended description of the tool.\n- `input_schema`: [JSON schema](https://json-schema.org/) for the tool `input`\n shape that the model will produce in `tool_use` output content blocks.\n\nFor example, if you defined `tools` as:\n\n```json\n[\n {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price for a given ticker symbol.\",\n \"input_schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"ticker\": {\n \"type\": \"string\",\n \"description\": \"The stock ticker symbol, e.g. AAPL for Apple Inc.\"\n }\n },\n \"required\": [\"ticker\"]\n }\n }\n]\n```\n\nAnd then asked the model \"What's the S&P 500 at today?\", the model might produce\n`tool_use` content blocks in the response like this:\n\n```json\n[\n {\n \"type\": \"tool_use\",\n \"id\": \"toolu_01D7FLrfh4GYq7yT1ULFeyMV\",\n \"name\": \"get_stock_price\",\n \"input\": { \"ticker\": \"^GSPC\" }\n }\n]\n```\n\nYou might then run your `get_stock_price` tool with `{\"ticker\": \"^GSPC\"}` as an\ninput, and return the following back to the model in a subsequent `user`\nmessage:\n\n```json\n[\n {\n \"type\": \"tool_result\",\n \"tool_use_id\": \"toolu_01D7FLrfh4GYq7yT1ULFeyMV\",\n \"content\": \"259.75 USD\"\n }\n]\n```\n\nTools can be used for workflows that include running client-side tools and\nfunctions, or more generally whenever you want the model to produce a particular\nJSON structure of output.\n\nSee our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.\n"; }; readonly top_k: { readonly type: "integer"; readonly description: "Only sample from the top K options for each subsequent token.\n\nUsed to remove \"long tail\" low probability responses.\n[Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).\n\nRecommended for advanced use cases only. You usually only need to use\n`temperature`.\n"; }; readonly top_p: { readonly type: "number"; readonly description: "Use nucleus sampling.\n\nIn nucleus sampling, we compute the cumulative distribution over all the options\nfor each subsequent token in decreasing probability order and cut it off once it\nreaches a particular probability specified by `top_p`. You should either alter\n`temperature` or `top_p`, but not both.\n\nRecommended for advanced use cases only. You usually only need to use\n`temperature`.\n"; }; readonly stream: { readonly type: "boolean"; readonly description: "Whether to incrementally stream the response using server-sent events.\n\nSee [streaming](https://docs.anthropic.com/en/api/messages-streaming) for\ndetails.\n"; readonly default: false; }; }; readonly description: "The request parameters for creating a message."; }; export declare const CreateMessageRequestMetadataSchema: { readonly type: "object"; readonly properties: { readonly user_id: { readonly type: "string"; readonly description: "An external identifier for the user who is associated with the request.\n\nThis should be a uuid, hash value, or other opaque identifier. Anthropic may use\nthis id to help detect abuse. Do not include any identifying information such as\nname, email address, or phone number.\n"; }; }; readonly description: "An object describing metadata about the request."; }; export declare const ToolChoiceSchema: { readonly required: readonly ["type"]; readonly type: "object"; readonly properties: { readonly type: { readonly $ref: "#/components/schemas/ToolChoiceType"; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool to use."; }; readonly disable_parallel_tool_use: { readonly type: "boolean"; readonly description: "Whether to disable parallel tool use."; }; }; readonly description: "How the model should use the provided tools. The model can use a specific tool, \nany available tool, or decide by itself.\n\n- `auto`: allows Claude to decide whether to call any provided tools or not. This is the default value.\n- `any`: tells Claude that it must use one of the provided tools, but doesn’t force a particular tool.\n- `tool`: allows us to force Claude to always use a particular tool specified in the `name` field.\n"; }; export declare const ToolChoiceTypeSchema: { readonly enum: readonly ["auto", "any", "tool"]; readonly type: "string"; readonly description: "How the model should use the provided tools. The model can use a specific tool, \nany available tool, or decide by itself.\n\n- `auto`: allows Claude to decide whether to call any provided tools or not. This is the default value.\n- `any`: tells Claude that it must use one of the provided tools, but doesn't force a particular tool.\n- `tool`: allows us to force Claude to always use a particular tool specified in the `name` field.\n"; }; export declare const MessageSchema: { readonly required: readonly ["content", "role"]; readonly type: "object"; readonly properties: { readonly id: { readonly type: "string"; readonly description: "Unique object identifier.\n\nThe format and length of IDs may change over time.\n"; }; readonly content: { readonly oneOf: readonly [{ readonly type: "string"; readonly description: "A single text block."; }, { readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/Block"; }; readonly description: "An array of content blocks."; }]; readonly description: "The content of the message."; }; readonly role: { readonly $ref: "#/components/schemas/MessageRole"; }; readonly model: { readonly type: "string"; readonly description: "The model that handled the request."; }; readonly stop_reason: { readonly $ref: "#/components/schemas/StopReason"; }; readonly stop_sequence: { readonly type: "string"; readonly description: "Which custom stop sequence was generated, if any.\n\nThis value will be a non-null string if one of your custom stop sequences was\ngenerated.\n"; }; readonly type: { readonly type: "string"; readonly description: "Object type.\n\nFor Messages, this is always `\"message\"`.\n"; }; readonly usage: { readonly $ref: "#/components/schemas/Usage"; }; }; readonly description: "A message in a chat conversation."; }; export declare const MessageRoleSchema: { readonly enum: readonly ["user", "assistant"]; readonly type: "string"; readonly description: "The role of the messages author."; }; export declare const ToolSchema: { readonly oneOf: readonly [{ readonly $ref: "#/components/schemas/ToolCustom"; }, { readonly $ref: "#/components/schemas/ToolComputerUse"; }, { readonly $ref: "#/components/schemas/ToolTextEditor"; }, { readonly $ref: "#/components/schemas/ToolBash"; }]; readonly description: "A tool the model may use."; readonly discriminator: { readonly propertyName: "type"; }; }; export declare const ToolCustomSchema: { readonly required: readonly ["name", "input_schema"]; readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "The type of tool."; readonly default: null; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool. Must match the regex `^[a-zA-Z0-9_-]{1,64}$`."; }; readonly description: { readonly type: "string"; readonly description: "Description of what this tool does.\n\nTool descriptions should be as detailed as possible. The more information that\nthe model has about what the tool is and how to use it, the better it will\nperform. You can use natural language descriptions to reinforce important\naspects of the tool input JSON schema.\n"; }; readonly input_schema: { readonly type: "object"; readonly description: "[JSON schema](https://json-schema.org/) for this tool's input.\n\nThis defines the shape of the `input` that your tool accepts and that the model\nwill produce.\n"; }; }; readonly description: "A custom tool the model may use."; }; export declare const ToolComputerUseSchema: { readonly required: readonly ["display_width_px", "display_height_px"]; readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "The type of tool."; readonly default: "computer_20241022"; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool."; readonly default: "computer"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; readonly display_width_px: { readonly type: "integer"; readonly description: "The width of the display in pixels."; }; readonly display_height_px: { readonly type: "integer"; readonly description: "The height of the display in pixels."; }; readonly display_number: { readonly type: "integer"; readonly description: "The number of the display to use."; readonly nullable: true; }; }; readonly description: "A tool that uses a mouse and keyboard to interact with a computer, and take screenshots."; }; export declare const ToolTextEditorSchema: { readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "The type of tool."; readonly default: "text_editor_20241022"; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool."; readonly default: "str_replace_editor"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "A tool for viewing, creating and editing files."; }; export declare const ToolBashSchema: { readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "The type of tool."; readonly default: "bash_20241022"; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool."; readonly default: "bash"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "A tool for running commands in a bash shell."; }; export declare const BlockSchema: { readonly oneOf: readonly [{ readonly $ref: "#/components/schemas/TextBlock"; }, { readonly $ref: "#/components/schemas/ImageBlock"; }, { readonly $ref: "#/components/schemas/ToolUseBlock"; }, { readonly $ref: "#/components/schemas/ToolResultBlock"; }]; readonly description: "A block of content in a message."; readonly discriminator: { readonly propertyName: "type"; readonly mapping: { readonly text: "#/components/schemas/TextBlock"; readonly image: "#/components/schemas/ImageBlock"; readonly tool_use: "#/components/schemas/ToolUseBlock"; readonly tool_result: "#/components/schemas/ToolResultBlock"; }; }; }; export declare const TextBlockSchema: { readonly required: readonly ["text"]; readonly type: "object"; readonly properties: { readonly text: { readonly type: "string"; readonly description: "The text content."; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "text"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "A block of text content."; }; export declare const ImageBlockSchema: { readonly required: readonly ["source"]; readonly type: "object"; readonly properties: { readonly source: { readonly $ref: "#/components/schemas/ImageBlockSource"; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "image"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "A block of image content."; }; export declare const ImageBlockSourceSchema: { readonly required: readonly ["data", "media_type", "type"]; readonly type: "object"; readonly properties: { readonly data: { readonly type: "string"; readonly description: "The base64-encoded image data."; }; readonly media_type: { readonly enum: readonly ["image/jpeg", "image/png", "image/gif", "image/webp"]; readonly type: "string"; readonly description: "The media type of the image."; }; readonly type: { readonly enum: readonly ["base64"]; readonly type: "string"; readonly description: "The type of image source."; }; }; readonly description: "The source of an image block."; }; export declare const ToolUseBlockSchema: { readonly required: readonly ["id", "name", "input"]; readonly type: "object"; readonly properties: { readonly id: { readonly type: "string"; readonly description: "A unique identifier for this particular tool use block. \nThis will be used to match up the tool results later.\n"; readonly example: "toolu_01A09q90qw90lq917835lq9"; }; readonly name: { readonly type: "string"; readonly description: "The name of the tool being used."; readonly example: "get_weather"; }; readonly input: { readonly type: "object"; readonly description: "An object containing the input being passed to the tool, conforming to the tool's `input_schema`."; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "tool_use"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "The tool the model wants to use."; }; export declare const ToolResultBlockSchema: { readonly required: readonly ["tool_use_id", "content"]; readonly type: "object"; readonly properties: { readonly tool_use_id: { readonly type: "string"; readonly description: "The `id` of the tool use request this is a result for."; }; readonly content: { readonly oneOf: readonly [{ readonly type: "string"; readonly description: "A single text block."; }, { readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/Block"; }; readonly description: "An array of content blocks."; }]; readonly description: "The result of the tool, as a string (e.g. `\"content\": \"15 degrees\"`) \nor list of nested content blocks (e.g. `\"content\": [{\"type\": \"text\", \"text\": \"15 degrees\"}]`). \nThese content blocks can use the text or image types.\n"; }; readonly is_error: { readonly type: "boolean"; readonly description: "Set to `true` if the tool execution resulted in an error."; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "tool_result"; }; readonly cache_control: { readonly $ref: "#/components/schemas/CacheControlEphemeral"; }; }; readonly description: "The result of using a tool."; }; export declare const CacheControlEphemeralSchema: { readonly type: "object"; readonly properties: { readonly type: { readonly enum: readonly ["ephemeral"]; readonly type: "string"; readonly default: "ephemeral"; }; }; readonly description: "The cache control settings."; }; export declare const StopReasonSchema: { readonly enum: readonly ["end_turn", "max_tokens", "stop_sequence", "tool_use"]; readonly type: "string"; readonly description: "The reason that we stopped.\n\nThis may be one the following values:\n\n- `\"end_turn\"`: the model reached a natural stopping point\n- `\"max_tokens\"`: we exceeded the requested `max_tokens` or the model's maximum\n- `\"stop_sequence\"`: one of your provided custom `stop_sequences` was generated\n- `\"tool_use\"`: the model invoked one or more tools\n\nIn non-streaming mode this value is always non-null. In streaming mode, it is\nnull in the `message_start` event and non-null otherwise.\n"; readonly nullable: true; }; export declare const UsageSchema: { readonly required: readonly ["input_tokens", "output_tokens"]; readonly type: "object"; readonly properties: { readonly input_tokens: { readonly type: "integer"; readonly description: "The number of input tokens which were used."; }; readonly output_tokens: { readonly type: "integer"; readonly description: "The number of output tokens which were used."; }; readonly cache_creation_input_tokens: { readonly type: "integer"; readonly description: "The number of input tokens read from the cache."; }; readonly cache_read_input_tokens: { readonly type: "integer"; readonly description: "The number of input tokens used to create the cache entry."; }; }; readonly description: "Billing and rate-limit usage.\n\nAnthropic's API bills and rate-limits by token counts, as tokens represent the\nunderlying cost to our systems.\n\nUnder the hood, the API transforms requests into a format suitable for the\nmodel. The model's output then goes through a parsing stage before becoming an\nAPI response. As a result, the token counts in `usage` will not match one-to-one\nwith the exact visible content of an API request or response.\n\nFor example, `output_tokens` will be non-zero, even for an empty string response\nfrom Claude.\n"; }; export declare const CreateMessageBatchRequestSchema: { readonly required: readonly ["requests"]; readonly type: "object"; readonly properties: { readonly requests: { readonly type: "array"; readonly items: { readonly $ref: "#/components/schemas/BatchMessageRequest"; }; readonly description: "List of requests for prompt completion. Each is an individual request to create a Message."; }; }; readonly description: "The request parameters for creating a message batch."; }; export declare const BatchMessageRequestSchema: { readonly required: readonly ["custom_id", "params"]; readonly type: "object"; readonly properties: { readonly custom_id: { readonly type: "string"; readonly description: "Developer-provided ID created for each request in a Message Batch. Useful for\nmatching results to requests, as results may be given out of request order.\n\nMust be unique for each request within the Message Batch.\n"; }; readonly params: { readonly $ref: "#/components/schemas/CreateMessageRequest"; }; }; readonly description: "An individual message request within a batch."; }; export declare const MessageBatchSchema: { readonly required: readonly ["id", "created_at", "expires_at", "processing_status", "request_counts", "type"]; readonly type: "object"; readonly properties: { readonly id: { readonly type: "string"; readonly description: "Unique object identifier for the message batch."; }; readonly created_at: { readonly type: "string"; readonly description: "RFC 3339 datetime string representing the time at which the Message Batch was created."; readonly format: "date-time"; }; readonly expires_at: { readonly type: "string"; readonly description: "RFC 3339 datetime string representing the time at which the Message Batch will expire and end processing, which is 24 hours after creation."; readonly format: "date-time"; }; readonly processing_status: { readonly enum: readonly ["in_progress", "canceling", "ended"]; readonly type: "string"; readonly description: "Processing status of the Message Batch."; }; readonly request_counts: { readonly $ref: "#/components/schemas/MessageBatchRequestCounts"; }; readonly results_url: { readonly type: "string"; readonly description: "URL to a `.jsonl` file containing the results of the Message Batch requests. Specified only once processing ends."; readonly nullable: true; }; readonly type: { readonly enum: readonly ["message_batch"]; readonly type: "string"; readonly description: "Object type. For Message Batches, this is always `\"message_batch\"`."; }; }; readonly description: "A batch of message requests."; }; export declare const MessageBatchRequestCountsSchema: { readonly required: readonly ["processing", "succeeded", "errored", "canceled", "expired"]; readonly type: "object"; readonly properties: { readonly processing: { readonly type: "integer"; readonly description: "Number of requests in the Message Batch that are processing."; }; readonly succeeded: { readonly type: "integer"; readonly description: "Number of requests in the Message Batch that have completed successfully."; }; readonly errored: { readonly type: "integer"; readonly description: "Number of requests in the Message Batch that encountered an error."; }; readonly canceled: { readonly type: "integer"; readonly description: "Number of requests in the Message Batch that have been canceled."; }; readonly expired: { readonly type: "integer"; readonly description: "Number of requests in the Message Batch that have expired."; }; }; readonly description: "Tallies requests within the Message Batch, categorized by their status."; }; export declare const MessageStreamEventSchema: { readonly type: "object"; readonly oneOf: readonly [{ readonly $ref: "#/components/schemas/MessageStartEvent"; }, { readonly $ref: "#/components/schemas/MessageDeltaEvent"; }, { readonly $ref: "#/components/schemas/MessageStopEvent"; }, { readonly $ref: "#/components/schemas/ContentBlockStartEvent"; }, { readonly $ref: "#/components/schemas/ContentBlockDeltaEvent"; }, { readonly $ref: "#/components/schemas/ContentBlockStopEvent"; }, { readonly $ref: "#/components/schemas/PingEvent"; }, { readonly $ref: "#/components/schemas/ErrorEvent"; }]; readonly description: "A event in a streaming conversation."; readonly discriminator: { readonly propertyName: "type"; readonly mapping: { readonly message_start: "#/components/schemas/MessageStartEvent"; readonly message_delta: "#/components/schemas/MessageDeltaEvent"; readonly message_stop: "#/components/schemas/MessageStopEvent"; readonly content_block_start: "#/components/schemas/ContentBlockStartEvent"; readonly content_block_delta: "#/components/schemas/ContentBlockDeltaEvent"; readonly content_block_stop: "#/components/schemas/ContentBlockStopEvent"; readonly ping: "#/components/schemas/PingEvent"; readonly error: "#/components/schemas/ErrorEvent"; }; }; }; export declare const MessageStreamEventTypeSchema: { readonly enum: readonly ["message_start", "message_delta", "message_stop", "content_block_start", "content_block_delta", "content_block_stop", "ping", "error"]; readonly type: "string"; readonly description: "The type of a streaming event."; }; export declare const MessageStartEventSchema: { readonly required: readonly ["message", "type"]; readonly type: "object"; readonly properties: { readonly message: { readonly $ref: "#/components/schemas/Message"; }; readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A start event in a streaming conversation."; }; export declare const MessageDeltaEventSchema: { readonly required: readonly ["delta", "type", "usage"]; readonly type: "object"; readonly properties: { readonly delta: { readonly $ref: "#/components/schemas/MessageDelta"; }; readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; readonly usage: { readonly $ref: "#/components/schemas/MessageDeltaUsage"; }; }; readonly description: "A delta event in a streaming conversation."; }; export declare const MessageDeltaSchema: { readonly type: "object"; readonly properties: { readonly stop_reason: { readonly $ref: "#/components/schemas/StopReason"; }; readonly stop_sequence: { readonly type: "string"; readonly description: "Which custom stop sequence was generated, if any.\n\nThis value will be a non-null string if one of your custom stop sequences was\ngenerated.\n"; }; }; readonly description: "A delta in a streaming message."; }; export declare const MessageDeltaUsageSchema: { readonly required: readonly ["output_tokens"]; readonly type: "object"; readonly properties: { readonly output_tokens: { readonly type: "integer"; readonly description: "The cumulative number of output tokens which were used."; }; }; readonly description: "Billing and rate-limit usage.\n\nAnthropic's API bills and rate-limits by token counts, as tokens represent the\nunderlying cost to our systems.\n\nUnder the hood, the API transforms requests into a format suitable for the\nmodel. The model's output then goes through a parsing stage before becoming an\nAPI response. As a result, the token counts in `usage` will not match one-to-one\nwith the exact visible content of an API request or response.\n\nFor example, `output_tokens` will be non-zero, even for an empty string response\nfrom Claude.\n"; }; export declare const MessageStopEventSchema: { readonly required: readonly ["type"]; readonly type: "object"; readonly properties: { readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A stop event in a streaming conversation."; }; export declare const ContentBlockStartEventSchema: { readonly required: readonly ["content_block", "index", "type"]; readonly type: "object"; readonly properties: { readonly content_block: { readonly $ref: "#/components/schemas/Block"; }; readonly index: { readonly type: "integer"; readonly description: "The index of the content block."; }; readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A start event in a streaming content block."; }; export declare const ContentBlockDeltaEventSchema: { readonly required: readonly ["delta", "index", "type"]; readonly type: "object"; readonly properties: { readonly delta: { readonly $ref: "#/components/schemas/BlockDelta"; }; readonly index: { readonly type: "integer"; readonly description: "The index of the content block."; }; readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A delta event in a streaming content block."; }; export declare const BlockDeltaSchema: { readonly oneOf: readonly [{ readonly $ref: "#/components/schemas/TextBlockDelta"; }, { readonly $ref: "#/components/schemas/InputJsonBlockDelta"; }]; readonly description: "A delta in a streaming message."; readonly discriminator: { readonly propertyName: "type"; readonly mapping: { readonly text_delta: "#/components/schemas/TextBlockDelta"; readonly input_json_delta: "#/components/schemas/InputJsonBlockDelta"; }; }; }; export declare const TextBlockDeltaSchema: { readonly required: readonly ["text", "type"]; readonly type: "object"; readonly properties: { readonly text: { readonly type: "string"; readonly description: "The text delta."; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "text_delta"; }; }; readonly description: "A delta in a streaming text block."; }; export declare const InputJsonBlockDeltaSchema: { readonly required: readonly ["text", "type"]; readonly type: "object"; readonly properties: { readonly partial_json: { readonly type: "string"; readonly description: "The partial JSON delta."; }; readonly type: { readonly type: "string"; readonly description: "The type of content block."; readonly default: "input_json_delta"; }; }; readonly description: "A delta in a streaming input JSON."; }; export declare const ContentBlockStopEventSchema: { readonly required: readonly ["index", "type"]; readonly type: "object"; readonly properties: { readonly index: { readonly type: "integer"; readonly description: "The index of the content block."; }; readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A stop event in a streaming content block."; }; export declare const PingEventSchema: { readonly required: readonly ["type"]; readonly type: "object"; readonly properties: { readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; }; readonly description: "A ping event in a streaming conversation."; }; export declare const ErrorEventSchema: { readonly required: readonly ["type", "error"]; readonly type: "object"; readonly properties: { readonly type: { readonly $ref: "#/components/schemas/MessageStreamEventType"; }; readonly error: { readonly $ref: "#/components/schemas/Error"; }; }; readonly description: "An error event in a streaming conversation."; }; export declare const ErrorSchema: { readonly required: readonly ["type", "message"]; readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "The type of error."; }; readonly message: { readonly type: "string"; readonly description: "A human-readable error message."; }; }; readonly description: "An error object."; }; //# sourceMappingURL=schemas.gen.d.ts.map