@anthropic-ai/sdk 0.95.2 → 0.96.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 +19 -0
- package/helpers/beta/zod.d.mts +5 -5
- package/helpers/beta/zod.d.mts.map +1 -1
- package/helpers/beta/zod.d.ts +5 -5
- package/helpers/beta/zod.d.ts.map +1 -1
- package/helpers/beta/zod.js.map +1 -1
- package/helpers/beta/zod.mjs.map +1 -1
- package/helpers/zod.d.mts +2 -2
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +2 -2
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.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 +5 -0
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +5 -0
- package/resources/beta/messages/batches.d.ts.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 +76 -1
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +76 -1
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +46 -5
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +46 -5
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/index.d.mts +1 -1
- package/resources/beta/sessions/index.d.mts.map +1 -1
- package/resources/beta/sessions/index.d.ts +1 -1
- package/resources/beta/sessions/index.d.ts.map +1 -1
- package/resources/beta/sessions/index.js.map +1 -1
- package/resources/beta/sessions/index.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +5 -5
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +5 -5
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/src/helpers/beta/zod.ts +6 -7
- package/src/helpers/zod.ts +2 -3
- package/src/resources/beta/beta.ts +18 -1
- package/src/resources/beta/index.ts +8 -0
- package/src/resources/beta/messages/batches.ts +6 -0
- package/src/resources/beta/messages/index.ts +8 -0
- package/src/resources/beta/messages/messages.ts +104 -0
- package/src/resources/beta/sessions/events.ts +76 -4
- package/src/resources/beta/sessions/index.ts +3 -0
- package/src/resources/beta/sessions/sessions.ts +9 -3
- 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
|
@@ -171,6 +171,12 @@ import {
|
|
|
171
171
|
BetaBashCodeExecutionToolResultErrorParam,
|
|
172
172
|
BetaCacheControlEphemeral,
|
|
173
173
|
BetaCacheCreation,
|
|
174
|
+
BetaCacheMissMessagesChanged,
|
|
175
|
+
BetaCacheMissModelChanged,
|
|
176
|
+
BetaCacheMissPreviousMessageNotFound,
|
|
177
|
+
BetaCacheMissSystemChanged,
|
|
178
|
+
BetaCacheMissToolsChanged,
|
|
179
|
+
BetaCacheMissUnavailable,
|
|
174
180
|
BetaCitationCharLocation,
|
|
175
181
|
BetaCitationCharLocationParam,
|
|
176
182
|
BetaCitationConfig,
|
|
@@ -218,6 +224,8 @@ import {
|
|
|
218
224
|
BetaContextManagementConfig,
|
|
219
225
|
BetaContextManagementResponse,
|
|
220
226
|
BetaCountTokensContextManagementResponse,
|
|
227
|
+
BetaDiagnostics,
|
|
228
|
+
BetaDiagnosticsParam,
|
|
221
229
|
BetaDirectCaller,
|
|
222
230
|
BetaDocumentBlock,
|
|
223
231
|
BetaEncryptedCodeExecutionResultBlock,
|
|
@@ -448,7 +456,8 @@ export type AnthropicBeta =
|
|
|
448
456
|
| 'output-300k-2026-03-24'
|
|
449
457
|
| 'user-profiles-2026-03-24'
|
|
450
458
|
| 'advisor-tool-2026-03-01'
|
|
451
|
-
| 'managed-agents-2026-04-01'
|
|
459
|
+
| 'managed-agents-2026-04-01'
|
|
460
|
+
| 'cache-diagnosis-2026-04-07';
|
|
452
461
|
|
|
453
462
|
export interface BetaAPIError {
|
|
454
463
|
message: string;
|
|
@@ -590,6 +599,12 @@ export declare namespace Beta {
|
|
|
590
599
|
type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam,
|
|
591
600
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
592
601
|
type BetaCacheCreation as BetaCacheCreation,
|
|
602
|
+
type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged,
|
|
603
|
+
type BetaCacheMissModelChanged as BetaCacheMissModelChanged,
|
|
604
|
+
type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound,
|
|
605
|
+
type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged,
|
|
606
|
+
type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged,
|
|
607
|
+
type BetaCacheMissUnavailable as BetaCacheMissUnavailable,
|
|
593
608
|
type BetaCitationCharLocation as BetaCitationCharLocation,
|
|
594
609
|
type BetaCitationCharLocationParam as BetaCitationCharLocationParam,
|
|
595
610
|
type BetaCitationConfig as BetaCitationConfig,
|
|
@@ -637,6 +652,8 @@ export declare namespace Beta {
|
|
|
637
652
|
type BetaContextManagementConfig as BetaContextManagementConfig,
|
|
638
653
|
type BetaContextManagementResponse as BetaContextManagementResponse,
|
|
639
654
|
type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse,
|
|
655
|
+
type BetaDiagnostics as BetaDiagnostics,
|
|
656
|
+
type BetaDiagnosticsParam as BetaDiagnosticsParam,
|
|
640
657
|
type BetaDirectCaller as BetaDirectCaller,
|
|
641
658
|
type BetaDocumentBlock as BetaDocumentBlock,
|
|
642
659
|
type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock,
|
|
@@ -124,6 +124,12 @@ export {
|
|
|
124
124
|
type BetaBashCodeExecutionToolResultErrorParam,
|
|
125
125
|
type BetaCacheControlEphemeral,
|
|
126
126
|
type BetaCacheCreation,
|
|
127
|
+
type BetaCacheMissMessagesChanged,
|
|
128
|
+
type BetaCacheMissModelChanged,
|
|
129
|
+
type BetaCacheMissPreviousMessageNotFound,
|
|
130
|
+
type BetaCacheMissSystemChanged,
|
|
131
|
+
type BetaCacheMissToolsChanged,
|
|
132
|
+
type BetaCacheMissUnavailable,
|
|
127
133
|
type BetaCitationCharLocation,
|
|
128
134
|
type BetaCitationCharLocationParam,
|
|
129
135
|
type BetaCitationConfig,
|
|
@@ -171,6 +177,8 @@ export {
|
|
|
171
177
|
type BetaContextManagementConfig,
|
|
172
178
|
type BetaContextManagementResponse,
|
|
173
179
|
type BetaCountTokensContextManagementResponse,
|
|
180
|
+
type BetaDiagnostics,
|
|
181
|
+
type BetaDiagnosticsParam,
|
|
174
182
|
type BetaDirectCaller,
|
|
175
183
|
type BetaDocumentBlock,
|
|
176
184
|
type BetaEncryptedCodeExecutionResultBlock,
|
|
@@ -563,6 +563,12 @@ export namespace BatchCreateParams {
|
|
|
563
563
|
*/
|
|
564
564
|
context_management?: BetaMessagesAPI.BetaContextManagementConfig | null;
|
|
565
565
|
|
|
566
|
+
/**
|
|
567
|
+
* Request-level diagnostics. Currently carries the previous response id for
|
|
568
|
+
* prompt-cache divergence reporting.
|
|
569
|
+
*/
|
|
570
|
+
diagnostics?: BetaMessagesAPI.BetaDiagnosticsParam | null;
|
|
571
|
+
|
|
566
572
|
/**
|
|
567
573
|
* Specifies the geographic region for inference processing. If not specified, the
|
|
568
574
|
* workspace's `default_inference_geo` is used.
|
|
@@ -44,6 +44,12 @@ export {
|
|
|
44
44
|
type BetaBashCodeExecutionToolResultErrorParam,
|
|
45
45
|
type BetaCacheControlEphemeral,
|
|
46
46
|
type BetaCacheCreation,
|
|
47
|
+
type BetaCacheMissMessagesChanged,
|
|
48
|
+
type BetaCacheMissModelChanged,
|
|
49
|
+
type BetaCacheMissPreviousMessageNotFound,
|
|
50
|
+
type BetaCacheMissSystemChanged,
|
|
51
|
+
type BetaCacheMissToolsChanged,
|
|
52
|
+
type BetaCacheMissUnavailable,
|
|
47
53
|
type BetaCitationCharLocation,
|
|
48
54
|
type BetaCitationCharLocationParam,
|
|
49
55
|
type BetaCitationConfig,
|
|
@@ -91,6 +97,8 @@ export {
|
|
|
91
97
|
type BetaContextManagementConfig,
|
|
92
98
|
type BetaContextManagementResponse,
|
|
93
99
|
type BetaCountTokensContextManagementResponse,
|
|
100
|
+
type BetaDiagnostics,
|
|
101
|
+
type BetaDiagnosticsParam,
|
|
94
102
|
type BetaDirectCaller,
|
|
95
103
|
type BetaDocumentBlock,
|
|
96
104
|
type BetaEncryptedCodeExecutionResultBlock,
|
|
@@ -562,6 +562,54 @@ export interface BetaCacheCreation {
|
|
|
562
562
|
ephemeral_5m_input_tokens: number;
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
+
export interface BetaCacheMissMessagesChanged {
|
|
566
|
+
/**
|
|
567
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
568
|
+
* prefix matched the previous request.
|
|
569
|
+
*/
|
|
570
|
+
cache_missed_input_tokens: number;
|
|
571
|
+
|
|
572
|
+
type: 'messages_changed';
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export interface BetaCacheMissModelChanged {
|
|
576
|
+
/**
|
|
577
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
578
|
+
* prefix matched the previous request.
|
|
579
|
+
*/
|
|
580
|
+
cache_missed_input_tokens: number;
|
|
581
|
+
|
|
582
|
+
type: 'model_changed';
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface BetaCacheMissPreviousMessageNotFound {
|
|
586
|
+
type: 'previous_message_not_found';
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export interface BetaCacheMissSystemChanged {
|
|
590
|
+
/**
|
|
591
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
592
|
+
* prefix matched the previous request.
|
|
593
|
+
*/
|
|
594
|
+
cache_missed_input_tokens: number;
|
|
595
|
+
|
|
596
|
+
type: 'system_changed';
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface BetaCacheMissToolsChanged {
|
|
600
|
+
/**
|
|
601
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
602
|
+
* prefix matched the previous request.
|
|
603
|
+
*/
|
|
604
|
+
cache_missed_input_tokens: number;
|
|
605
|
+
|
|
606
|
+
type: 'tools_changed';
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface BetaCacheMissUnavailable {
|
|
610
|
+
type: 'unavailable';
|
|
611
|
+
}
|
|
612
|
+
|
|
565
613
|
export interface BetaCitationCharLocation {
|
|
566
614
|
cited_text: string;
|
|
567
615
|
|
|
@@ -1330,6 +1378,42 @@ export interface BetaCountTokensContextManagementResponse {
|
|
|
1330
1378
|
original_input_tokens: number;
|
|
1331
1379
|
}
|
|
1332
1380
|
|
|
1381
|
+
/**
|
|
1382
|
+
* Response envelope for request-level diagnostics. Present (possibly null)
|
|
1383
|
+
* whenever the caller supplied `diagnostics` on the request.
|
|
1384
|
+
*/
|
|
1385
|
+
export interface BetaDiagnostics {
|
|
1386
|
+
/**
|
|
1387
|
+
* Explains why the prompt cache could not fully reuse the prefix from the request
|
|
1388
|
+
* identified by `diagnostics.previous_message_id`. `null` means diagnosis is still
|
|
1389
|
+
* pending — the response was serialized before the background comparison
|
|
1390
|
+
* completed.
|
|
1391
|
+
*/
|
|
1392
|
+
cache_miss_reason:
|
|
1393
|
+
| BetaCacheMissModelChanged
|
|
1394
|
+
| BetaCacheMissSystemChanged
|
|
1395
|
+
| BetaCacheMissToolsChanged
|
|
1396
|
+
| BetaCacheMissMessagesChanged
|
|
1397
|
+
| BetaCacheMissPreviousMessageNotFound
|
|
1398
|
+
| BetaCacheMissUnavailable
|
|
1399
|
+
| null;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Request-level diagnostics. Currently carries the previous response id for
|
|
1404
|
+
* prompt-cache divergence reporting.
|
|
1405
|
+
*/
|
|
1406
|
+
export interface BetaDiagnosticsParam {
|
|
1407
|
+
/**
|
|
1408
|
+
* The `id` (`msg_...`) from this client's previous /v1/messages response. The
|
|
1409
|
+
* server compares that request's prompt fingerprint against this one and returns
|
|
1410
|
+
* `diagnostics.cache_miss_reason` when the prompt-cache prefix could not be
|
|
1411
|
+
* reused. Pass `null` on the first turn to opt in without a prior message to
|
|
1412
|
+
* compare.
|
|
1413
|
+
*/
|
|
1414
|
+
previous_message_id?: string | null;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1333
1417
|
/**
|
|
1334
1418
|
* Tool invocation directly from the model.
|
|
1335
1419
|
*/
|
|
@@ -1746,6 +1830,12 @@ export interface BetaMessage {
|
|
|
1746
1830
|
*/
|
|
1747
1831
|
context_management: BetaContextManagementResponse | null;
|
|
1748
1832
|
|
|
1833
|
+
/**
|
|
1834
|
+
* Response envelope for request-level diagnostics. Present (possibly null)
|
|
1835
|
+
* whenever the caller supplied `diagnostics` on the request.
|
|
1836
|
+
*/
|
|
1837
|
+
diagnostics: BetaDiagnostics | null;
|
|
1838
|
+
|
|
1749
1839
|
/**
|
|
1750
1840
|
* The model that will complete your prompt.\n\nSee
|
|
1751
1841
|
* [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
@@ -3947,6 +4037,12 @@ export interface MessageCreateParamsBase {
|
|
|
3947
4037
|
*/
|
|
3948
4038
|
context_management?: BetaContextManagementConfig | null;
|
|
3949
4039
|
|
|
4040
|
+
/**
|
|
4041
|
+
* Body param: Request-level diagnostics. Currently carries the previous response
|
|
4042
|
+
* id for prompt-cache divergence reporting.
|
|
4043
|
+
*/
|
|
4044
|
+
diagnostics?: BetaDiagnosticsParam | null;
|
|
4045
|
+
|
|
3950
4046
|
/**
|
|
3951
4047
|
* Body param: Specifies the geographic region for inference processing. If not
|
|
3952
4048
|
* specified, the workspace's `default_inference_geo` is used.
|
|
@@ -4465,6 +4561,12 @@ export declare namespace Messages {
|
|
|
4465
4561
|
type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam,
|
|
4466
4562
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
4467
4563
|
type BetaCacheCreation as BetaCacheCreation,
|
|
4564
|
+
type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged,
|
|
4565
|
+
type BetaCacheMissModelChanged as BetaCacheMissModelChanged,
|
|
4566
|
+
type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound,
|
|
4567
|
+
type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged,
|
|
4568
|
+
type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged,
|
|
4569
|
+
type BetaCacheMissUnavailable as BetaCacheMissUnavailable,
|
|
4468
4570
|
type BetaCitationCharLocation as BetaCitationCharLocation,
|
|
4469
4571
|
type BetaCitationCharLocationParam as BetaCitationCharLocationParam,
|
|
4470
4572
|
type BetaCitationConfig as BetaCitationConfig,
|
|
@@ -4512,6 +4614,8 @@ export declare namespace Messages {
|
|
|
4512
4614
|
type BetaContextManagementConfig as BetaContextManagementConfig,
|
|
4513
4615
|
type BetaContextManagementResponse as BetaContextManagementResponse,
|
|
4514
4616
|
type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse,
|
|
4617
|
+
type BetaDiagnostics as BetaDiagnostics,
|
|
4618
|
+
type BetaDiagnosticsParam as BetaDiagnosticsParam,
|
|
4515
4619
|
type BetaDirectCaller as BetaDirectCaller,
|
|
4516
4620
|
type BetaDocumentBlock as BetaDocumentBlock,
|
|
4517
4621
|
type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock,
|
|
@@ -172,7 +172,12 @@ export interface BetaManagedAgentsAgentMCPToolResultEvent {
|
|
|
172
172
|
/**
|
|
173
173
|
* The result content returned by the tool.
|
|
174
174
|
*/
|
|
175
|
-
content?: Array<
|
|
175
|
+
content?: Array<
|
|
176
|
+
| BetaManagedAgentsTextBlock
|
|
177
|
+
| BetaManagedAgentsImageBlock
|
|
178
|
+
| BetaManagedAgentsDocumentBlock
|
|
179
|
+
| BetaManagedAgentsSearchResultBlock
|
|
180
|
+
>;
|
|
176
181
|
|
|
177
182
|
/**
|
|
178
183
|
* Whether the tool execution resulted in an error.
|
|
@@ -374,7 +379,12 @@ export interface BetaManagedAgentsAgentToolResultEvent {
|
|
|
374
379
|
/**
|
|
375
380
|
* The result content returned by the tool.
|
|
376
381
|
*/
|
|
377
|
-
content?: Array<
|
|
382
|
+
content?: Array<
|
|
383
|
+
| BetaManagedAgentsTextBlock
|
|
384
|
+
| BetaManagedAgentsImageBlock
|
|
385
|
+
| BetaManagedAgentsDocumentBlock
|
|
386
|
+
| BetaManagedAgentsSearchResultBlock
|
|
387
|
+
>;
|
|
378
388
|
|
|
379
389
|
/**
|
|
380
390
|
* Whether the tool execution resulted in an error.
|
|
@@ -732,6 +742,55 @@ export interface BetaManagedAgentsRetryStatusTerminal {
|
|
|
732
742
|
type: 'terminal';
|
|
733
743
|
}
|
|
734
744
|
|
|
745
|
+
/**
|
|
746
|
+
* A block containing a web search result.
|
|
747
|
+
*/
|
|
748
|
+
export interface BetaManagedAgentsSearchResultBlock {
|
|
749
|
+
/**
|
|
750
|
+
* Citation settings for a search result.
|
|
751
|
+
*/
|
|
752
|
+
citations: BetaManagedAgentsSearchResultCitations;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Array of text content blocks from the search result.
|
|
756
|
+
*/
|
|
757
|
+
content: Array<BetaManagedAgentsSearchResultContent>;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* The URL source of the search result.
|
|
761
|
+
*/
|
|
762
|
+
source: string;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* The title of the search result.
|
|
766
|
+
*/
|
|
767
|
+
title: string;
|
|
768
|
+
|
|
769
|
+
type: 'search_result';
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Citation settings for a search result.
|
|
774
|
+
*/
|
|
775
|
+
export interface BetaManagedAgentsSearchResultCitations {
|
|
776
|
+
/**
|
|
777
|
+
* Whether citations are enabled for this search result.
|
|
778
|
+
*/
|
|
779
|
+
enabled: boolean;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Text content within a search result.
|
|
784
|
+
*/
|
|
785
|
+
export interface BetaManagedAgentsSearchResultContent {
|
|
786
|
+
/**
|
|
787
|
+
* The text content.
|
|
788
|
+
*/
|
|
789
|
+
text: string;
|
|
790
|
+
|
|
791
|
+
type: 'text';
|
|
792
|
+
}
|
|
793
|
+
|
|
735
794
|
/**
|
|
736
795
|
* Events that were successfully sent to the session.
|
|
737
796
|
*/
|
|
@@ -1428,7 +1487,12 @@ export interface BetaManagedAgentsUserCustomToolResultEvent {
|
|
|
1428
1487
|
/**
|
|
1429
1488
|
* The result content returned by the tool.
|
|
1430
1489
|
*/
|
|
1431
|
-
content?: Array<
|
|
1490
|
+
content?: Array<
|
|
1491
|
+
| BetaManagedAgentsTextBlock
|
|
1492
|
+
| BetaManagedAgentsImageBlock
|
|
1493
|
+
| BetaManagedAgentsDocumentBlock
|
|
1494
|
+
| BetaManagedAgentsSearchResultBlock
|
|
1495
|
+
>;
|
|
1432
1496
|
|
|
1433
1497
|
/**
|
|
1434
1498
|
* Whether the tool execution resulted in an error.
|
|
@@ -1464,7 +1528,12 @@ export interface BetaManagedAgentsUserCustomToolResultEventParams {
|
|
|
1464
1528
|
/**
|
|
1465
1529
|
* The result content returned by the tool.
|
|
1466
1530
|
*/
|
|
1467
|
-
content?: Array<
|
|
1531
|
+
content?: Array<
|
|
1532
|
+
| BetaManagedAgentsTextBlock
|
|
1533
|
+
| BetaManagedAgentsImageBlock
|
|
1534
|
+
| BetaManagedAgentsDocumentBlock
|
|
1535
|
+
| BetaManagedAgentsSearchResultBlock
|
|
1536
|
+
>;
|
|
1468
1537
|
|
|
1469
1538
|
/**
|
|
1470
1539
|
* Whether the tool execution resulted in an error.
|
|
@@ -1765,6 +1834,9 @@ export declare namespace Events {
|
|
|
1765
1834
|
type BetaManagedAgentsRetryStatusExhausted as BetaManagedAgentsRetryStatusExhausted,
|
|
1766
1835
|
type BetaManagedAgentsRetryStatusRetrying as BetaManagedAgentsRetryStatusRetrying,
|
|
1767
1836
|
type BetaManagedAgentsRetryStatusTerminal as BetaManagedAgentsRetryStatusTerminal,
|
|
1837
|
+
type BetaManagedAgentsSearchResultBlock as BetaManagedAgentsSearchResultBlock,
|
|
1838
|
+
type BetaManagedAgentsSearchResultCitations as BetaManagedAgentsSearchResultCitations,
|
|
1839
|
+
type BetaManagedAgentsSearchResultContent as BetaManagedAgentsSearchResultContent,
|
|
1768
1840
|
type BetaManagedAgentsSendSessionEvents as BetaManagedAgentsSendSessionEvents,
|
|
1769
1841
|
type BetaManagedAgentsSessionDeletedEvent as BetaManagedAgentsSessionDeletedEvent,
|
|
1770
1842
|
type BetaManagedAgentsSessionEndTurn as BetaManagedAgentsSessionEndTurn,
|
|
@@ -31,6 +31,9 @@ export {
|
|
|
31
31
|
type BetaManagedAgentsRetryStatusExhausted,
|
|
32
32
|
type BetaManagedAgentsRetryStatusRetrying,
|
|
33
33
|
type BetaManagedAgentsRetryStatusTerminal,
|
|
34
|
+
type BetaManagedAgentsSearchResultBlock,
|
|
35
|
+
type BetaManagedAgentsSearchResultCitations,
|
|
36
|
+
type BetaManagedAgentsSearchResultContent,
|
|
34
37
|
type BetaManagedAgentsSendSessionEvents,
|
|
35
38
|
type BetaManagedAgentsSessionDeletedEvent,
|
|
36
39
|
type BetaManagedAgentsSessionEndTurn,
|
|
@@ -34,6 +34,9 @@ import {
|
|
|
34
34
|
BetaManagedAgentsRetryStatusExhausted,
|
|
35
35
|
BetaManagedAgentsRetryStatusRetrying,
|
|
36
36
|
BetaManagedAgentsRetryStatusTerminal,
|
|
37
|
+
BetaManagedAgentsSearchResultBlock,
|
|
38
|
+
BetaManagedAgentsSearchResultCitations,
|
|
39
|
+
BetaManagedAgentsSearchResultContent,
|
|
37
40
|
BetaManagedAgentsSendSessionEvents,
|
|
38
41
|
BetaManagedAgentsSessionDeletedEvent,
|
|
39
42
|
BetaManagedAgentsSessionEndTurn,
|
|
@@ -480,9 +483,9 @@ export interface BetaManagedAgentsOutcomeEvaluationResource {
|
|
|
480
483
|
outcome_id: string;
|
|
481
484
|
|
|
482
485
|
/**
|
|
483
|
-
* Current evaluation state.
|
|
484
|
-
* while producing or revising;
|
|
485
|
-
*
|
|
486
|
+
* Current evaluation state. `pending` before the agent begins work; `running`
|
|
487
|
+
* while producing or revising; `evaluating` while the grader scores;
|
|
488
|
+
* `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
|
|
486
489
|
*/
|
|
487
490
|
result: string;
|
|
488
491
|
|
|
@@ -864,6 +867,9 @@ export declare namespace Sessions {
|
|
|
864
867
|
type BetaManagedAgentsRetryStatusExhausted as BetaManagedAgentsRetryStatusExhausted,
|
|
865
868
|
type BetaManagedAgentsRetryStatusRetrying as BetaManagedAgentsRetryStatusRetrying,
|
|
866
869
|
type BetaManagedAgentsRetryStatusTerminal as BetaManagedAgentsRetryStatusTerminal,
|
|
870
|
+
type BetaManagedAgentsSearchResultBlock as BetaManagedAgentsSearchResultBlock,
|
|
871
|
+
type BetaManagedAgentsSearchResultCitations as BetaManagedAgentsSearchResultCitations,
|
|
872
|
+
type BetaManagedAgentsSearchResultContent as BetaManagedAgentsSearchResultContent,
|
|
867
873
|
type BetaManagedAgentsSendSessionEvents as BetaManagedAgentsSendSessionEvents,
|
|
868
874
|
type BetaManagedAgentsSessionDeletedEvent as BetaManagedAgentsSessionDeletedEvent,
|
|
869
875
|
type BetaManagedAgentsSessionEndTurn as BetaManagedAgentsSessionEndTurn,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.96.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.96.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.96.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.96.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|