@anthropic-ai/sdk 0.70.1 → 0.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/helpers/beta/json-schema.d.mts +1 -1
- package/helpers/beta/json-schema.d.ts +1 -1
- package/helpers/beta/json-schema.js +1 -1
- package/helpers/beta/json-schema.mjs +1 -1
- package/helpers/beta/zod.d.mts +1 -1
- package/helpers/beta/zod.d.ts +1 -1
- package/helpers/beta/zod.js +1 -1
- package/helpers/beta/zod.mjs +1 -1
- package/lib/BetaMessageStream.d.mts +7 -2
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts +7 -2
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +9 -7
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +9 -7
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/beta-parser.d.mts +8 -3
- package/lib/beta-parser.d.mts.map +1 -1
- package/lib/beta-parser.d.ts +8 -3
- package/lib/beta-parser.d.ts.map +1 -1
- package/lib/beta-parser.js +30 -16
- package/lib/beta-parser.js.map +1 -1
- package/lib/beta-parser.mjs +30 -16
- package/lib/beta-parser.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts +2 -0
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts +2 -0
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +88 -15
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +88 -15
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/CompactionControl.d.mts +25 -0
- package/lib/tools/CompactionControl.d.mts.map +1 -0
- package/lib/tools/CompactionControl.d.ts +25 -0
- package/lib/tools/CompactionControl.d.ts.map +1 -0
- package/lib/tools/CompactionControl.js +28 -0
- package/lib/tools/CompactionControl.js.map +1 -0
- package/lib/tools/CompactionControl.mjs +25 -0
- package/lib/tools/CompactionControl.mjs.map +1 -0
- package/lib/tools/ToolRunner.js +1 -1
- package/lib/tools/ToolRunner.js.map +1 -1
- package/lib/tools/ToolRunner.mjs +1 -1
- package/lib/tools/ToolRunner.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +3 -3
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +3 -3
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/batches.d.mts +288 -3
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +288 -3
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/batches.js.map +1 -1
- package/resources/beta/messages/batches.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +346 -13
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +346 -13
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +4 -4
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +4 -4
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/messages/batches.d.mts +2 -2
- package/resources/messages/batches.d.ts +2 -2
- package/resources/messages/messages.d.mts +2 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +2 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/src/client.ts +1 -1
- package/src/helpers/beta/json-schema.ts +1 -1
- package/src/helpers/beta/zod.ts +1 -1
- package/src/lib/BetaMessageStream.ts +11 -4
- package/src/lib/beta-parser.ts +37 -15
- package/src/lib/tools/BetaToolRunner.ts +101 -15
- package/src/lib/tools/CompactionControl.ts +52 -0
- package/src/lib/tools/ToolRunner.ts +1 -1
- package/src/resources/beta/beta.ts +19 -2
- package/src/resources/beta/index.ts +18 -1
- package/src/resources/beta/messages/batches.ts +307 -3
- package/src/resources/beta/messages/index.ts +18 -1
- package/src/resources/beta/messages/messages.ts +467 -11
- package/src/resources/completions.ts +1 -1
- package/src/resources/messages/batches.ts +2 -2
- package/src/resources/messages/messages.ts +3 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,KAAK,eAAe;OACpB,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OAEtC,EAAE,cAAc,EAAE;OAClB,EAAE,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],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eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -5,6 +5,7 @@ import * as BetaMessagesAPI from "./messages.js";
|
|
|
5
5
|
import { Page, type PageParams, PagePromise } from "../../../core/pagination.js";
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
7
|
import { JSONLDecoder } from "../../../internal/decoders/jsonl.js";
|
|
8
|
+
import * as MessagesApi from "../../messages/messages.js";
|
|
8
9
|
export declare class Batches extends APIResource {
|
|
9
10
|
/**
|
|
10
11
|
* Send a batch of Message creation requests.
|
|
@@ -301,10 +302,294 @@ export declare namespace BatchCreateParams {
|
|
|
301
302
|
/**
|
|
302
303
|
* Messages API creation parameters for the individual request.
|
|
303
304
|
*
|
|
304
|
-
* See the [Messages API reference](/en/api/messages) for
|
|
305
|
-
* available parameters.
|
|
305
|
+
* See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
306
|
+
* full documentation on available parameters.
|
|
306
307
|
*/
|
|
307
|
-
params:
|
|
308
|
+
params: Request.Params;
|
|
309
|
+
}
|
|
310
|
+
namespace Request {
|
|
311
|
+
/**
|
|
312
|
+
* Messages API creation parameters for the individual request.
|
|
313
|
+
*
|
|
314
|
+
* See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
315
|
+
* full documentation on available parameters.
|
|
316
|
+
*/
|
|
317
|
+
interface Params {
|
|
318
|
+
/**
|
|
319
|
+
* The maximum number of tokens to generate before stopping.
|
|
320
|
+
*
|
|
321
|
+
* Note that our models may stop _before_ reaching this maximum. This parameter
|
|
322
|
+
* only specifies the absolute maximum number of tokens to generate.
|
|
323
|
+
*
|
|
324
|
+
* Different models have different maximum values for this parameter. See
|
|
325
|
+
* [models](https://docs.claude.com/en/docs/models-overview) for details.
|
|
326
|
+
*/
|
|
327
|
+
max_tokens: number;
|
|
328
|
+
/**
|
|
329
|
+
* Input messages.
|
|
330
|
+
*
|
|
331
|
+
* Our models are trained to operate on alternating `user` and `assistant`
|
|
332
|
+
* conversational turns. When creating a new `Message`, you specify the prior
|
|
333
|
+
* conversational turns with the `messages` parameter, and the model then generates
|
|
334
|
+
* the next `Message` in the conversation. Consecutive `user` or `assistant` turns
|
|
335
|
+
* in your request will be combined into a single turn.
|
|
336
|
+
*
|
|
337
|
+
* Each input message must be an object with a `role` and `content`. You can
|
|
338
|
+
* specify a single `user`-role message, or you can include multiple `user` and
|
|
339
|
+
* `assistant` messages.
|
|
340
|
+
*
|
|
341
|
+
* If the final message uses the `assistant` role, the response content will
|
|
342
|
+
* continue immediately from the content in that message. This can be used to
|
|
343
|
+
* constrain part of the model's response.
|
|
344
|
+
*
|
|
345
|
+
* Example with a single `user` message:
|
|
346
|
+
*
|
|
347
|
+
* ```json
|
|
348
|
+
* [{ "role": "user", "content": "Hello, Claude" }]
|
|
349
|
+
* ```
|
|
350
|
+
*
|
|
351
|
+
* Example with multiple conversational turns:
|
|
352
|
+
*
|
|
353
|
+
* ```json
|
|
354
|
+
* [
|
|
355
|
+
* { "role": "user", "content": "Hello there." },
|
|
356
|
+
* { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
|
|
357
|
+
* { "role": "user", "content": "Can you explain LLMs in plain English?" }
|
|
358
|
+
* ]
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* Example with a partially-filled response from Claude:
|
|
362
|
+
*
|
|
363
|
+
* ```json
|
|
364
|
+
* [
|
|
365
|
+
* {
|
|
366
|
+
* "role": "user",
|
|
367
|
+
* "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
|
|
368
|
+
* },
|
|
369
|
+
* { "role": "assistant", "content": "The best answer is (" }
|
|
370
|
+
* ]
|
|
371
|
+
* ```
|
|
372
|
+
*
|
|
373
|
+
* Each input message `content` may be either a single `string` or an array of
|
|
374
|
+
* content blocks, where each block has a specific `type`. Using a `string` for
|
|
375
|
+
* `content` is shorthand for an array of one content block of type `"text"`. The
|
|
376
|
+
* following input messages are equivalent:
|
|
377
|
+
*
|
|
378
|
+
* ```json
|
|
379
|
+
* { "role": "user", "content": "Hello, Claude" }
|
|
380
|
+
* ```
|
|
381
|
+
*
|
|
382
|
+
* ```json
|
|
383
|
+
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
384
|
+
* ```
|
|
385
|
+
*
|
|
386
|
+
* See [input examples](https://docs.claude.com/en/api/messages-examples).
|
|
387
|
+
*
|
|
388
|
+
* Note that if you want to include a
|
|
389
|
+
* [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
|
|
390
|
+
* top-level `system` parameter — there is no `"system"` role for input messages in
|
|
391
|
+
* the Messages API.
|
|
392
|
+
*
|
|
393
|
+
* There is a limit of 100,000 messages in a single request.
|
|
394
|
+
*/
|
|
395
|
+
messages: Array<BetaMessagesAPI.BetaMessageParam>;
|
|
396
|
+
/**
|
|
397
|
+
* The model that will complete your prompt.\n\nSee
|
|
398
|
+
* [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
399
|
+
* details and options.
|
|
400
|
+
*/
|
|
401
|
+
model: MessagesApi.Model;
|
|
402
|
+
/**
|
|
403
|
+
* Container identifier for reuse across requests.
|
|
404
|
+
*/
|
|
405
|
+
container?: BetaMessagesAPI.BetaContainerParams | string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Context management configuration.
|
|
408
|
+
*
|
|
409
|
+
* This allows you to control how Claude manages context across multiple requests,
|
|
410
|
+
* such as whether to clear function results or not.
|
|
411
|
+
*/
|
|
412
|
+
context_management?: BetaMessagesAPI.BetaContextManagementConfig | null;
|
|
413
|
+
/**
|
|
414
|
+
* MCP servers to be utilized in this request
|
|
415
|
+
*/
|
|
416
|
+
mcp_servers?: Array<BetaMessagesAPI.BetaRequestMCPServerURLDefinition>;
|
|
417
|
+
/**
|
|
418
|
+
* An object describing metadata about the request.
|
|
419
|
+
*/
|
|
420
|
+
metadata?: BetaMessagesAPI.BetaMetadata;
|
|
421
|
+
/**
|
|
422
|
+
* Configuration options for the model's output. Controls aspects like how much
|
|
423
|
+
* effort the model puts into its response.
|
|
424
|
+
*/
|
|
425
|
+
output_config?: BetaMessagesAPI.BetaOutputConfig;
|
|
426
|
+
/**
|
|
427
|
+
* A schema to specify Claude's output format in responses.
|
|
428
|
+
*/
|
|
429
|
+
output_format?: BetaMessagesAPI.BetaJSONOutputFormat | null;
|
|
430
|
+
/**
|
|
431
|
+
* Determines whether to use priority capacity (if available) or standard capacity
|
|
432
|
+
* for this request.
|
|
433
|
+
*
|
|
434
|
+
* Anthropic offers different levels of service for your API requests. See
|
|
435
|
+
* [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
|
|
436
|
+
*/
|
|
437
|
+
service_tier?: 'auto' | 'standard_only';
|
|
438
|
+
/**
|
|
439
|
+
* Custom text sequences that will cause the model to stop generating.
|
|
440
|
+
*
|
|
441
|
+
* Our models will normally stop when they have naturally completed their turn,
|
|
442
|
+
* which will result in a response `stop_reason` of `"end_turn"`.
|
|
443
|
+
*
|
|
444
|
+
* If you want the model to stop generating when it encounters custom strings of
|
|
445
|
+
* text, you can use the `stop_sequences` parameter. If the model encounters one of
|
|
446
|
+
* the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
|
|
447
|
+
* and the response `stop_sequence` value will contain the matched stop sequence.
|
|
448
|
+
*/
|
|
449
|
+
stop_sequences?: Array<string>;
|
|
450
|
+
/**
|
|
451
|
+
* Whether to incrementally stream the response using server-sent events.
|
|
452
|
+
*
|
|
453
|
+
* See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
|
|
454
|
+
*/
|
|
455
|
+
stream?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* System prompt.
|
|
458
|
+
*
|
|
459
|
+
* A system prompt is a way of providing context and instructions to Claude, such
|
|
460
|
+
* as specifying a particular goal or role. See our
|
|
461
|
+
* [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
|
|
462
|
+
*/
|
|
463
|
+
system?: string | Array<BetaMessagesAPI.BetaTextBlockParam>;
|
|
464
|
+
/**
|
|
465
|
+
* Amount of randomness injected into the response.
|
|
466
|
+
*
|
|
467
|
+
* Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
|
|
468
|
+
* for analytical / multiple choice, and closer to `1.0` for creative and
|
|
469
|
+
* generative tasks.
|
|
470
|
+
*
|
|
471
|
+
* Note that even with `temperature` of `0.0`, the results will not be fully
|
|
472
|
+
* deterministic.
|
|
473
|
+
*/
|
|
474
|
+
temperature?: number;
|
|
475
|
+
/**
|
|
476
|
+
* Configuration for enabling Claude's extended thinking.
|
|
477
|
+
*
|
|
478
|
+
* When enabled, responses include `thinking` content blocks showing Claude's
|
|
479
|
+
* thinking process before the final answer. Requires a minimum budget of 1,024
|
|
480
|
+
* tokens and counts towards your `max_tokens` limit.
|
|
481
|
+
*
|
|
482
|
+
* See
|
|
483
|
+
* [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
|
|
484
|
+
* for details.
|
|
485
|
+
*/
|
|
486
|
+
thinking?: BetaMessagesAPI.BetaThinkingConfigParam;
|
|
487
|
+
/**
|
|
488
|
+
* How the model should use the provided tools. The model can use a specific tool,
|
|
489
|
+
* any available tool, decide by itself, or not use tools at all.
|
|
490
|
+
*/
|
|
491
|
+
tool_choice?: BetaMessagesAPI.BetaToolChoice;
|
|
492
|
+
/**
|
|
493
|
+
* Definitions of tools that the model may use.
|
|
494
|
+
*
|
|
495
|
+
* If you include `tools` in your API request, the model may return `tool_use`
|
|
496
|
+
* content blocks that represent the model's use of those tools. You can then run
|
|
497
|
+
* those tools using the tool input generated by the model and then optionally
|
|
498
|
+
* return results back to the model using `tool_result` content blocks.
|
|
499
|
+
*
|
|
500
|
+
* There are two types of tools: **client tools** and **server tools**. The
|
|
501
|
+
* behavior described below applies to client tools. For
|
|
502
|
+
* [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
|
|
503
|
+
* see their individual documentation as each has its own behavior (e.g., the
|
|
504
|
+
* [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
|
|
505
|
+
*
|
|
506
|
+
* Each tool definition includes:
|
|
507
|
+
*
|
|
508
|
+
* - `name`: Name of the tool.
|
|
509
|
+
* - `description`: Optional, but strongly-recommended description of the tool.
|
|
510
|
+
* - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
|
|
511
|
+
* tool `input` shape that the model will produce in `tool_use` output content
|
|
512
|
+
* blocks.
|
|
513
|
+
*
|
|
514
|
+
* For example, if you defined `tools` as:
|
|
515
|
+
*
|
|
516
|
+
* ```json
|
|
517
|
+
* [
|
|
518
|
+
* {
|
|
519
|
+
* "name": "get_stock_price",
|
|
520
|
+
* "description": "Get the current stock price for a given ticker symbol.",
|
|
521
|
+
* "input_schema": {
|
|
522
|
+
* "type": "object",
|
|
523
|
+
* "properties": {
|
|
524
|
+
* "ticker": {
|
|
525
|
+
* "type": "string",
|
|
526
|
+
* "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
|
|
527
|
+
* }
|
|
528
|
+
* },
|
|
529
|
+
* "required": ["ticker"]
|
|
530
|
+
* }
|
|
531
|
+
* }
|
|
532
|
+
* ]
|
|
533
|
+
* ```
|
|
534
|
+
*
|
|
535
|
+
* And then asked the model "What's the S&P 500 at today?", the model might produce
|
|
536
|
+
* `tool_use` content blocks in the response like this:
|
|
537
|
+
*
|
|
538
|
+
* ```json
|
|
539
|
+
* [
|
|
540
|
+
* {
|
|
541
|
+
* "type": "tool_use",
|
|
542
|
+
* "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
|
|
543
|
+
* "name": "get_stock_price",
|
|
544
|
+
* "input": { "ticker": "^GSPC" }
|
|
545
|
+
* }
|
|
546
|
+
* ]
|
|
547
|
+
* ```
|
|
548
|
+
*
|
|
549
|
+
* You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
|
|
550
|
+
* input, and return the following back to the model in a subsequent `user`
|
|
551
|
+
* message:
|
|
552
|
+
*
|
|
553
|
+
* ```json
|
|
554
|
+
* [
|
|
555
|
+
* {
|
|
556
|
+
* "type": "tool_result",
|
|
557
|
+
* "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
|
|
558
|
+
* "content": "259.75 USD"
|
|
559
|
+
* }
|
|
560
|
+
* ]
|
|
561
|
+
* ```
|
|
562
|
+
*
|
|
563
|
+
* Tools can be used for workflows that include running client-side tools and
|
|
564
|
+
* functions, or more generally whenever you want the model to produce a particular
|
|
565
|
+
* JSON structure of output.
|
|
566
|
+
*
|
|
567
|
+
* See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
|
|
568
|
+
*/
|
|
569
|
+
tools?: Array<BetaMessagesAPI.BetaToolUnion>;
|
|
570
|
+
/**
|
|
571
|
+
* Only sample from the top K options for each subsequent token.
|
|
572
|
+
*
|
|
573
|
+
* Used to remove "long tail" low probability responses.
|
|
574
|
+
* [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
|
|
575
|
+
*
|
|
576
|
+
* Recommended for advanced use cases only. You usually only need to use
|
|
577
|
+
* `temperature`.
|
|
578
|
+
*/
|
|
579
|
+
top_k?: number;
|
|
580
|
+
/**
|
|
581
|
+
* Use nucleus sampling.
|
|
582
|
+
*
|
|
583
|
+
* In nucleus sampling, we compute the cumulative distribution over all the options
|
|
584
|
+
* for each subsequent token in decreasing probability order and cut it off once it
|
|
585
|
+
* reaches a particular probability specified by `top_p`. You should either alter
|
|
586
|
+
* `temperature` or `top_p`, but not both.
|
|
587
|
+
*
|
|
588
|
+
* Recommended for advanced use cases only. You usually only need to use
|
|
589
|
+
* `temperature`.
|
|
590
|
+
*/
|
|
591
|
+
top_p?: number;
|
|
592
|
+
}
|
|
308
593
|
}
|
|
309
594
|
}
|
|
310
595
|
export interface BatchRetrieveParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,KAAK,eAAe;OACpB,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OAEtC,EAAE,cAAc,EAAE;OAClB,EAAE,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"batches.d.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AO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.js","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],"mappings":";AAAA,sFA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ches.mjs","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAgC;OACtC,EAAE,YAAY,EAAE;OAEhB,EAAE,YAAY,EAAE;OAChB,EAAE,cAAc,EAAE;OAClB,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../../../src/resources/beta/messages/batches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAgC;OACtC,EAAE,YAAY,EAAE;OAEhB,EAAE,YAAY,EAAE;OAChB,EAAE,cAAc,EAAE;OAClB,EAAE,IAAI,EAAE;AAGf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,4BAA4B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,cAAsB,EACtB,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,cAAc,YAAY,EAAE;YAC9E,GAAG,OAAO;YACV,OAAO,EAAE,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,KAAK,CAAC,UAAU,CAAC,CAEvF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Batches, type BetaDeletedMessageBatch, type BetaMessageBatch, type BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts, type BetaMessageBatchResult, type BetaMessageBatchSucceededResult, type BatchCreateParams, type BatchRetrieveParams, type BatchListParams, type BatchDeleteParams, type BatchCancelParams, type BatchResultsParams, type BetaMessageBatchesPage, } from "./batches.mjs";
|
|
2
|
-
export { Messages, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaContainer, type BetaContainerParams, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDocumentBlock, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaInputJSONDelta, type BetaJSONOutputFormat, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkill, type BetaSkillParams, type BetaStopReason, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockParam, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingTurns, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type
|
|
2
|
+
export { Messages, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaContainer, type BetaContainerParams, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDirectCaller, type BetaDocumentBlock, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaInputJSONDelta, type BetaJSONOutputFormat, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMCPToolset, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaOutputConfig, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam, type BetaServerToolCaller, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkill, type BetaSkillParams, type BetaStopReason, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockParam, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingTurns, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type BetaToolComputerUse20251124, type BetaToolReferenceBlock, type BetaToolReferenceBlockParam, type BetaToolResultBlockParam, type BetaToolTextEditor20241022, type BetaToolTextEditor20250124, type BetaToolTextEditor20250429, type BetaToolTextEditor20250728, type BetaToolUnion, type BetaToolUseBlock, type BetaToolUseBlockParam, type BetaToolUsesKeep, type BetaToolUsesTrigger, type BetaURLImageSource, type BetaURLPDFSource, type BetaUsage, type BetaWebFetchBlock, type BetaWebFetchBlockParam, type BetaWebFetchTool20250910, type BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305, type BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock, type MessageCreateParams, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, type BetaMessageStreamParams, type BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam, type BetaMCPToolConfig, type BetaMCPToolDefaultConfig, type BetaToolResultContentBlockParam, } from "./messages.mjs";
|
|
3
3
|
export { BetaToolRunner, type BetaToolRunnerParams } from "./messages.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9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AAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,wCAAwC,EAC7C,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,E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AiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,wCAAwC,EAC7C,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,wCAAwC,EAC7C,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,GACrC;OACM,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Batches, type BetaDeletedMessageBatch, type BetaMessageBatch, type BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts, type BetaMessageBatchResult, type BetaMessageBatchSucceededResult, type BatchCreateParams, type BatchRetrieveParams, type BatchListParams, type BatchDeleteParams, type BatchCancelParams, type BatchResultsParams, type BetaMessageBatchesPage, } from "./batches.js";
|
|
2
|
-
export { Messages, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaContainer, type BetaContainerParams, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDocumentBlock, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaInputJSONDelta, type BetaJSONOutputFormat, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkill, type BetaSkillParams, type BetaStopReason, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockParam, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingTurns, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type
|
|
2
|
+
export { Messages, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaContainer, type BetaContainerParams, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDirectCaller, type BetaDocumentBlock, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaInputJSONDelta, type BetaJSONOutputFormat, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMCPToolset, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaOutputConfig, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam, type BetaServerToolCaller, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkill, type BetaSkillParams, type BetaStopReason, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockParam, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingTurns, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type BetaToolComputerUse20251124, type BetaToolReferenceBlock, type BetaToolReferenceBlockParam, type BetaToolResultBlockParam, type BetaToolTextEditor20241022, type BetaToolTextEditor20250124, type BetaToolTextEditor20250429, type BetaToolTextEditor20250728, type BetaToolUnion, type BetaToolUseBlock, type BetaToolUseBlockParam, type BetaToolUsesKeep, type BetaToolUsesTrigger, type BetaURLImageSource, type BetaURLPDFSource, type BetaUsage, type BetaWebFetchBlock, type BetaWebFetchBlockParam, type BetaWebFetchTool20250910, type BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305, type BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock, type MessageCreateParams, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, type BetaMessageStreamParams, type BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam, type BetaMCPToolConfig, type BetaMCPToolDefaultConfig, type BetaToolResultContentBlockParam, } from "./messages.js";
|
|
3
3
|
export { BetaToolRunner, type BetaToolRunnerParams } from "./messages.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,wCAAwC,EAC7C,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,gC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B,EAC3B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,4CAA4C,EACjD,KAAK,iDAAiD,EACtD,KAAK,gDAAgD,EACrD,KAAK,qDAAqD,EAC1D,KAAK,0CAA0C,EAC/C,KAAK,+CAA+C,EACpD,KAAK,0CAA0C,EAC/C,KAAK,+CAA+C,EACpD,KAAK,0CAA0C,EAC/C,KAAK,+CAA+C,EACpD,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,oB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AAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,wCAAwC,EAC7C,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,GACrC;OACM,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAkBmB;AAjBjB,kGAAA,OAAO,OAAA;AAkBT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAkBmB;AAjBjB,kGAAA,OAAO,OAAA;AAkBT,0CA8LoB;AA7LlB,oGAAA,QAAQ,OAAA;AA8LV,0CAAuE;AAA9D,0GAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAiBR;OACM,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/messages/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAiBR;OACM,EACL,QAAQ,GA6LT;OACM,EAAE,cAAc,EAA6B"}
|