@anthropic-ai/sdk 0.70.1 → 0.71.0
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 +15 -0
- package/README.md +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 +344 -11
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +344 -11
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +1 -1
- 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/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 +462 -6
- 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
|
@@ -10,6 +10,7 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
10
10
|
import { JSONLDecoder } from '../../../internal/decoders/jsonl';
|
|
11
11
|
import { AnthropicError } from '../../../error';
|
|
12
12
|
import { path } from '../../../internal/utils/path';
|
|
13
|
+
import * as MessagesApi from '../../messages/messages';
|
|
13
14
|
|
|
14
15
|
export class Batches extends APIResource {
|
|
15
16
|
/**
|
|
@@ -438,10 +439,313 @@ export namespace BatchCreateParams {
|
|
|
438
439
|
/**
|
|
439
440
|
* Messages API creation parameters for the individual request.
|
|
440
441
|
*
|
|
441
|
-
* See the [Messages API reference](/en/api/messages) for
|
|
442
|
-
* available parameters.
|
|
442
|
+
* See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
443
|
+
* full documentation on available parameters.
|
|
443
444
|
*/
|
|
444
|
-
params:
|
|
445
|
+
params: Request.Params;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export namespace Request {
|
|
449
|
+
/**
|
|
450
|
+
* Messages API creation parameters for the individual request.
|
|
451
|
+
*
|
|
452
|
+
* See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
453
|
+
* full documentation on available parameters.
|
|
454
|
+
*/
|
|
455
|
+
export interface Params {
|
|
456
|
+
/**
|
|
457
|
+
* The maximum number of tokens to generate before stopping.
|
|
458
|
+
*
|
|
459
|
+
* Note that our models may stop _before_ reaching this maximum. This parameter
|
|
460
|
+
* only specifies the absolute maximum number of tokens to generate.
|
|
461
|
+
*
|
|
462
|
+
* Different models have different maximum values for this parameter. See
|
|
463
|
+
* [models](https://docs.claude.com/en/docs/models-overview) for details.
|
|
464
|
+
*/
|
|
465
|
+
max_tokens: number;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Input messages.
|
|
469
|
+
*
|
|
470
|
+
* Our models are trained to operate on alternating `user` and `assistant`
|
|
471
|
+
* conversational turns. When creating a new `Message`, you specify the prior
|
|
472
|
+
* conversational turns with the `messages` parameter, and the model then generates
|
|
473
|
+
* the next `Message` in the conversation. Consecutive `user` or `assistant` turns
|
|
474
|
+
* in your request will be combined into a single turn.
|
|
475
|
+
*
|
|
476
|
+
* Each input message must be an object with a `role` and `content`. You can
|
|
477
|
+
* specify a single `user`-role message, or you can include multiple `user` and
|
|
478
|
+
* `assistant` messages.
|
|
479
|
+
*
|
|
480
|
+
* If the final message uses the `assistant` role, the response content will
|
|
481
|
+
* continue immediately from the content in that message. This can be used to
|
|
482
|
+
* constrain part of the model's response.
|
|
483
|
+
*
|
|
484
|
+
* Example with a single `user` message:
|
|
485
|
+
*
|
|
486
|
+
* ```json
|
|
487
|
+
* [{ "role": "user", "content": "Hello, Claude" }]
|
|
488
|
+
* ```
|
|
489
|
+
*
|
|
490
|
+
* Example with multiple conversational turns:
|
|
491
|
+
*
|
|
492
|
+
* ```json
|
|
493
|
+
* [
|
|
494
|
+
* { "role": "user", "content": "Hello there." },
|
|
495
|
+
* { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
|
|
496
|
+
* { "role": "user", "content": "Can you explain LLMs in plain English?" }
|
|
497
|
+
* ]
|
|
498
|
+
* ```
|
|
499
|
+
*
|
|
500
|
+
* Example with a partially-filled response from Claude:
|
|
501
|
+
*
|
|
502
|
+
* ```json
|
|
503
|
+
* [
|
|
504
|
+
* {
|
|
505
|
+
* "role": "user",
|
|
506
|
+
* "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
|
|
507
|
+
* },
|
|
508
|
+
* { "role": "assistant", "content": "The best answer is (" }
|
|
509
|
+
* ]
|
|
510
|
+
* ```
|
|
511
|
+
*
|
|
512
|
+
* Each input message `content` may be either a single `string` or an array of
|
|
513
|
+
* content blocks, where each block has a specific `type`. Using a `string` for
|
|
514
|
+
* `content` is shorthand for an array of one content block of type `"text"`. The
|
|
515
|
+
* following input messages are equivalent:
|
|
516
|
+
*
|
|
517
|
+
* ```json
|
|
518
|
+
* { "role": "user", "content": "Hello, Claude" }
|
|
519
|
+
* ```
|
|
520
|
+
*
|
|
521
|
+
* ```json
|
|
522
|
+
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
523
|
+
* ```
|
|
524
|
+
*
|
|
525
|
+
* See [input examples](https://docs.claude.com/en/api/messages-examples).
|
|
526
|
+
*
|
|
527
|
+
* Note that if you want to include a
|
|
528
|
+
* [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
|
|
529
|
+
* top-level `system` parameter — there is no `"system"` role for input messages in
|
|
530
|
+
* the Messages API.
|
|
531
|
+
*
|
|
532
|
+
* There is a limit of 100,000 messages in a single request.
|
|
533
|
+
*/
|
|
534
|
+
messages: Array<BetaMessagesAPI.BetaMessageParam>;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* The model that will complete your prompt.\n\nSee
|
|
538
|
+
* [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
539
|
+
* details and options.
|
|
540
|
+
*/
|
|
541
|
+
model: MessagesApi.Model;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Container identifier for reuse across requests.
|
|
545
|
+
*/
|
|
546
|
+
container?: BetaMessagesAPI.BetaContainerParams | string | null;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Context management configuration.
|
|
550
|
+
*
|
|
551
|
+
* This allows you to control how Claude manages context across multiple requests,
|
|
552
|
+
* such as whether to clear function results or not.
|
|
553
|
+
*/
|
|
554
|
+
context_management?: BetaMessagesAPI.BetaContextManagementConfig | null;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* MCP servers to be utilized in this request
|
|
558
|
+
*/
|
|
559
|
+
mcp_servers?: Array<BetaMessagesAPI.BetaRequestMCPServerURLDefinition>;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* An object describing metadata about the request.
|
|
563
|
+
*/
|
|
564
|
+
metadata?: BetaMessagesAPI.BetaMetadata;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Configuration options for the model's output. Controls aspects like how much
|
|
568
|
+
* effort the model puts into its response.
|
|
569
|
+
*/
|
|
570
|
+
output_config?: BetaMessagesAPI.BetaOutputConfig;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* A schema to specify Claude's output format in responses.
|
|
574
|
+
*/
|
|
575
|
+
output_format?: BetaMessagesAPI.BetaJSONOutputFormat | null;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Determines whether to use priority capacity (if available) or standard capacity
|
|
579
|
+
* for this request.
|
|
580
|
+
*
|
|
581
|
+
* Anthropic offers different levels of service for your API requests. See
|
|
582
|
+
* [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
|
|
583
|
+
*/
|
|
584
|
+
service_tier?: 'auto' | 'standard_only';
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Custom text sequences that will cause the model to stop generating.
|
|
588
|
+
*
|
|
589
|
+
* Our models will normally stop when they have naturally completed their turn,
|
|
590
|
+
* which will result in a response `stop_reason` of `"end_turn"`.
|
|
591
|
+
*
|
|
592
|
+
* If you want the model to stop generating when it encounters custom strings of
|
|
593
|
+
* text, you can use the `stop_sequences` parameter. If the model encounters one of
|
|
594
|
+
* the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
|
|
595
|
+
* and the response `stop_sequence` value will contain the matched stop sequence.
|
|
596
|
+
*/
|
|
597
|
+
stop_sequences?: Array<string>;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Whether to incrementally stream the response using server-sent events.
|
|
601
|
+
*
|
|
602
|
+
* See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
|
|
603
|
+
*/
|
|
604
|
+
stream?: boolean;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* System prompt.
|
|
608
|
+
*
|
|
609
|
+
* A system prompt is a way of providing context and instructions to Claude, such
|
|
610
|
+
* as specifying a particular goal or role. See our
|
|
611
|
+
* [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
|
|
612
|
+
*/
|
|
613
|
+
system?: string | Array<BetaMessagesAPI.BetaTextBlockParam>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Amount of randomness injected into the response.
|
|
617
|
+
*
|
|
618
|
+
* Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
|
|
619
|
+
* for analytical / multiple choice, and closer to `1.0` for creative and
|
|
620
|
+
* generative tasks.
|
|
621
|
+
*
|
|
622
|
+
* Note that even with `temperature` of `0.0`, the results will not be fully
|
|
623
|
+
* deterministic.
|
|
624
|
+
*/
|
|
625
|
+
temperature?: number;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Configuration for enabling Claude's extended thinking.
|
|
629
|
+
*
|
|
630
|
+
* When enabled, responses include `thinking` content blocks showing Claude's
|
|
631
|
+
* thinking process before the final answer. Requires a minimum budget of 1,024
|
|
632
|
+
* tokens and counts towards your `max_tokens` limit.
|
|
633
|
+
*
|
|
634
|
+
* See
|
|
635
|
+
* [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
|
|
636
|
+
* for details.
|
|
637
|
+
*/
|
|
638
|
+
thinking?: BetaMessagesAPI.BetaThinkingConfigParam;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* How the model should use the provided tools. The model can use a specific tool,
|
|
642
|
+
* any available tool, decide by itself, or not use tools at all.
|
|
643
|
+
*/
|
|
644
|
+
tool_choice?: BetaMessagesAPI.BetaToolChoice;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Definitions of tools that the model may use.
|
|
648
|
+
*
|
|
649
|
+
* If you include `tools` in your API request, the model may return `tool_use`
|
|
650
|
+
* content blocks that represent the model's use of those tools. You can then run
|
|
651
|
+
* those tools using the tool input generated by the model and then optionally
|
|
652
|
+
* return results back to the model using `tool_result` content blocks.
|
|
653
|
+
*
|
|
654
|
+
* There are two types of tools: **client tools** and **server tools**. The
|
|
655
|
+
* behavior described below applies to client tools. For
|
|
656
|
+
* [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
|
|
657
|
+
* see their individual documentation as each has its own behavior (e.g., the
|
|
658
|
+
* [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
|
|
659
|
+
*
|
|
660
|
+
* Each tool definition includes:
|
|
661
|
+
*
|
|
662
|
+
* - `name`: Name of the tool.
|
|
663
|
+
* - `description`: Optional, but strongly-recommended description of the tool.
|
|
664
|
+
* - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
|
|
665
|
+
* tool `input` shape that the model will produce in `tool_use` output content
|
|
666
|
+
* blocks.
|
|
667
|
+
*
|
|
668
|
+
* For example, if you defined `tools` as:
|
|
669
|
+
*
|
|
670
|
+
* ```json
|
|
671
|
+
* [
|
|
672
|
+
* {
|
|
673
|
+
* "name": "get_stock_price",
|
|
674
|
+
* "description": "Get the current stock price for a given ticker symbol.",
|
|
675
|
+
* "input_schema": {
|
|
676
|
+
* "type": "object",
|
|
677
|
+
* "properties": {
|
|
678
|
+
* "ticker": {
|
|
679
|
+
* "type": "string",
|
|
680
|
+
* "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
|
|
681
|
+
* }
|
|
682
|
+
* },
|
|
683
|
+
* "required": ["ticker"]
|
|
684
|
+
* }
|
|
685
|
+
* }
|
|
686
|
+
* ]
|
|
687
|
+
* ```
|
|
688
|
+
*
|
|
689
|
+
* And then asked the model "What's the S&P 500 at today?", the model might produce
|
|
690
|
+
* `tool_use` content blocks in the response like this:
|
|
691
|
+
*
|
|
692
|
+
* ```json
|
|
693
|
+
* [
|
|
694
|
+
* {
|
|
695
|
+
* "type": "tool_use",
|
|
696
|
+
* "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
|
|
697
|
+
* "name": "get_stock_price",
|
|
698
|
+
* "input": { "ticker": "^GSPC" }
|
|
699
|
+
* }
|
|
700
|
+
* ]
|
|
701
|
+
* ```
|
|
702
|
+
*
|
|
703
|
+
* You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
|
|
704
|
+
* input, and return the following back to the model in a subsequent `user`
|
|
705
|
+
* message:
|
|
706
|
+
*
|
|
707
|
+
* ```json
|
|
708
|
+
* [
|
|
709
|
+
* {
|
|
710
|
+
* "type": "tool_result",
|
|
711
|
+
* "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
|
|
712
|
+
* "content": "259.75 USD"
|
|
713
|
+
* }
|
|
714
|
+
* ]
|
|
715
|
+
* ```
|
|
716
|
+
*
|
|
717
|
+
* Tools can be used for workflows that include running client-side tools and
|
|
718
|
+
* functions, or more generally whenever you want the model to produce a particular
|
|
719
|
+
* JSON structure of output.
|
|
720
|
+
*
|
|
721
|
+
* See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
|
|
722
|
+
*/
|
|
723
|
+
tools?: Array<BetaMessagesAPI.BetaToolUnion>;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Only sample from the top K options for each subsequent token.
|
|
727
|
+
*
|
|
728
|
+
* Used to remove "long tail" low probability responses.
|
|
729
|
+
* [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
|
|
730
|
+
*
|
|
731
|
+
* Recommended for advanced use cases only. You usually only need to use
|
|
732
|
+
* `temperature`.
|
|
733
|
+
*/
|
|
734
|
+
top_k?: number;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Use nucleus sampling.
|
|
738
|
+
*
|
|
739
|
+
* In nucleus sampling, we compute the cumulative distribution over all the options
|
|
740
|
+
* for each subsequent token in decreasing probability order and cut it off once it
|
|
741
|
+
* reaches a particular probability specified by `top_p`. You should either alter
|
|
742
|
+
* `temperature` or `top_p`, but not both.
|
|
743
|
+
*
|
|
744
|
+
* Recommended for advanced use cases only. You usually only need to use
|
|
745
|
+
* `temperature`.
|
|
746
|
+
*/
|
|
747
|
+
top_p?: number;
|
|
748
|
+
}
|
|
445
749
|
}
|
|
446
750
|
}
|
|
447
751
|
|
|
@@ -75,6 +75,7 @@ export {
|
|
|
75
75
|
type BetaContextManagementConfig,
|
|
76
76
|
type BetaContextManagementResponse,
|
|
77
77
|
type BetaCountTokensContextManagementResponse,
|
|
78
|
+
type BetaDirectCaller,
|
|
78
79
|
type BetaDocumentBlock,
|
|
79
80
|
type BetaFileDocumentSource,
|
|
80
81
|
type BetaFileImageSource,
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
type BetaMCPToolResultBlock,
|
|
87
88
|
type BetaMCPToolUseBlock,
|
|
88
89
|
type BetaMCPToolUseBlockParam,
|
|
90
|
+
type BetaMCPToolset,
|
|
89
91
|
type BetaMemoryTool20250818,
|
|
90
92
|
type BetaMemoryTool20250818Command,
|
|
91
93
|
type BetaMemoryTool20250818CreateCommand,
|
|
@@ -99,6 +101,7 @@ export {
|
|
|
99
101
|
type BetaMessageParam,
|
|
100
102
|
type BetaMessageTokensCount,
|
|
101
103
|
type BetaMetadata,
|
|
104
|
+
type BetaOutputConfig,
|
|
102
105
|
type BetaPlainTextSource,
|
|
103
106
|
type BetaRawContentBlockDelta,
|
|
104
107
|
type BetaRawContentBlockDeltaEvent,
|
|
@@ -115,6 +118,7 @@ export {
|
|
|
115
118
|
type BetaRequestMCPServerURLDefinition,
|
|
116
119
|
type BetaRequestMCPToolResultBlockParam,
|
|
117
120
|
type BetaSearchResultBlockParam,
|
|
121
|
+
type BetaServerToolCaller,
|
|
118
122
|
type BetaServerToolUsage,
|
|
119
123
|
type BetaServerToolUseBlock,
|
|
120
124
|
type BetaServerToolUseBlockParam,
|
|
@@ -154,8 +158,10 @@ export {
|
|
|
154
158
|
type BetaToolChoiceTool,
|
|
155
159
|
type BetaToolComputerUse20241022,
|
|
156
160
|
type BetaToolComputerUse20250124,
|
|
161
|
+
type BetaToolComputerUse20251124,
|
|
162
|
+
type BetaToolReferenceBlock,
|
|
163
|
+
type BetaToolReferenceBlockParam,
|
|
157
164
|
type BetaToolResultBlockParam,
|
|
158
|
-
type BetaToolResultContentBlockParam,
|
|
159
165
|
type BetaToolTextEditor20241022,
|
|
160
166
|
type BetaToolTextEditor20250124,
|
|
161
167
|
type BetaToolTextEditor20250429,
|
|
@@ -192,5 +198,16 @@ export {
|
|
|
192
198
|
type MessageCreateParamsStreaming,
|
|
193
199
|
type MessageCountTokensParams,
|
|
194
200
|
type BetaMessageStreamParams,
|
|
201
|
+
type BetaToolSearchToolBm25_20251119,
|
|
202
|
+
type BetaToolSearchToolRegex20251119,
|
|
203
|
+
type BetaToolSearchToolResultBlock,
|
|
204
|
+
type BetaToolSearchToolResultBlockParam,
|
|
205
|
+
type BetaToolSearchToolResultError,
|
|
206
|
+
type BetaToolSearchToolResultErrorParam,
|
|
207
|
+
type BetaToolSearchToolSearchResultBlock,
|
|
208
|
+
type BetaToolSearchToolSearchResultBlockParam,
|
|
209
|
+
type BetaMCPToolConfig,
|
|
210
|
+
type BetaMCPToolDefaultConfig,
|
|
211
|
+
type BetaToolResultContentBlockParam,
|
|
195
212
|
} from './messages';
|
|
196
213
|
export { BetaToolRunner, type BetaToolRunnerParams } from './messages';
|