graphlit-client 1.0.20260225002 → 1.0.20260226002
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/dist/client.d.ts +1 -1
- package/dist/client.js +13 -5
- package/dist/generated/graphql-documents.d.ts +1 -1
- package/dist/generated/graphql-documents.js +37 -3
- package/dist/generated/graphql-types.d.ts +47 -7
- package/dist/generated/graphql-types.js +3 -1
- package/dist/types/agent.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -668,7 +668,7 @@ declare class Graphlit {
|
|
|
668
668
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
669
669
|
* @returns The distribution results.
|
|
670
670
|
*/
|
|
671
|
-
|
|
671
|
+
distribute(connector: Types.DistributionConnectorInput, authentication: Types.EntityReferenceInput, filter?: Types.ContentFilter, text?: string, textType?: Types.TextTypes, name?: string, correlationId?: string): Promise<Types.DistributeMutation>;
|
|
672
672
|
/**
|
|
673
673
|
* Researches contents and publishes the results.
|
|
674
674
|
* @param connector - The publishing connector to use.
|
package/dist/client.js
CHANGED
|
@@ -1322,8 +1322,8 @@ class Graphlit {
|
|
|
1322
1322
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
1323
1323
|
* @returns The distribution results.
|
|
1324
1324
|
*/
|
|
1325
|
-
async
|
|
1326
|
-
return this.mutateAndCheckError(Documents.
|
|
1325
|
+
async distribute(connector, authentication, filter, text, textType, name, correlationId) {
|
|
1326
|
+
return this.mutateAndCheckError(Documents.Distribute, {
|
|
1327
1327
|
connector: connector,
|
|
1328
1328
|
authentication: authentication,
|
|
1329
1329
|
filter: filter,
|
|
@@ -5419,6 +5419,10 @@ class Graphlit {
|
|
|
5419
5419
|
}
|
|
5420
5420
|
// Update the full message
|
|
5421
5421
|
fullMessage = roundMessage;
|
|
5422
|
+
// Check abort after streaming completes, before starting tool execution
|
|
5423
|
+
if (abortSignal?.aborted) {
|
|
5424
|
+
throw new Error("Operation aborted");
|
|
5425
|
+
}
|
|
5422
5426
|
// If no tool calls, we're done
|
|
5423
5427
|
if (!toolCalls || toolCalls.length === 0) {
|
|
5424
5428
|
break;
|
|
@@ -5448,6 +5452,10 @@ class Graphlit {
|
|
|
5448
5452
|
}
|
|
5449
5453
|
// Execute tools and add responses
|
|
5450
5454
|
for (const toolCall of toolCalls) {
|
|
5455
|
+
// Check abort between tool calls so we don't run the entire round
|
|
5456
|
+
if (abortSignal?.aborted) {
|
|
5457
|
+
throw new Error("Operation aborted");
|
|
5458
|
+
}
|
|
5451
5459
|
const handler = toolHandlers[toolCall.name];
|
|
5452
5460
|
if (!handler) {
|
|
5453
5461
|
console.warn(`No handler for tool: ${toolCall.name}`);
|
|
@@ -5531,7 +5539,7 @@ class Graphlit {
|
|
|
5531
5539
|
}
|
|
5532
5540
|
}
|
|
5533
5541
|
// Execute tool
|
|
5534
|
-
const result = await handler(args, artifactCollector);
|
|
5542
|
+
const result = await handler(args, artifactCollector, abortSignal);
|
|
5535
5543
|
// Update UI with complete event including result
|
|
5536
5544
|
uiAdapter.handleEvent({
|
|
5537
5545
|
type: "tool_call_complete",
|
|
@@ -5733,7 +5741,7 @@ class Graphlit {
|
|
|
5733
5741
|
}
|
|
5734
5742
|
try {
|
|
5735
5743
|
const args = toolCall.arguments ? JSON.parse(toolCall.arguments) : {};
|
|
5736
|
-
const result = await handler(args);
|
|
5744
|
+
const result = await handler(args, undefined, abortSignal);
|
|
5737
5745
|
uiAdapter.handleEvent({
|
|
5738
5746
|
type: "tool_call_complete",
|
|
5739
5747
|
toolCall: {
|
|
@@ -6086,7 +6094,7 @@ class Graphlit {
|
|
|
6086
6094
|
const args = toolCall.arguments ? JSON.parse(toolCall.arguments) : {};
|
|
6087
6095
|
// Add timeout for individual tool calls (30 seconds)
|
|
6088
6096
|
const toolTimeout = new Promise((_, reject) => setTimeout(() => reject(new Error("Tool execution timeout")), 30000));
|
|
6089
|
-
result = await Promise.race([handler(args), toolTimeout]);
|
|
6097
|
+
result = await Promise.race([handler(args, undefined, signal), toolTimeout]);
|
|
6090
6098
|
}
|
|
6091
6099
|
catch (e) {
|
|
6092
6100
|
error = e.message || "Tool execution failed";
|
|
@@ -43,7 +43,7 @@ export declare const DeleteContent: import("graphql").DocumentNode;
|
|
|
43
43
|
export declare const DeleteContents: import("graphql").DocumentNode;
|
|
44
44
|
export declare const DescribeEncodedImage: import("graphql").DocumentNode;
|
|
45
45
|
export declare const DescribeImage: import("graphql").DocumentNode;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const Distribute: import("graphql").DocumentNode;
|
|
47
47
|
export declare const ExtractContents: import("graphql").DocumentNode;
|
|
48
48
|
export declare const ExtractObservables: import("graphql").DocumentNode;
|
|
49
49
|
export declare const ExtractText: import("graphql").DocumentNode;
|
|
@@ -84,6 +84,7 @@ export const GetAlert = gql `
|
|
|
84
84
|
to
|
|
85
85
|
}
|
|
86
86
|
inLast
|
|
87
|
+
inNext
|
|
87
88
|
creationDateRange {
|
|
88
89
|
from
|
|
89
90
|
to
|
|
@@ -214,6 +215,14 @@ export const GetAlert = gql `
|
|
|
214
215
|
id
|
|
215
216
|
}
|
|
216
217
|
}
|
|
218
|
+
quiverImage {
|
|
219
|
+
model
|
|
220
|
+
count
|
|
221
|
+
seed {
|
|
222
|
+
id
|
|
223
|
+
}
|
|
224
|
+
instructions
|
|
225
|
+
}
|
|
217
226
|
openAIVideo {
|
|
218
227
|
model
|
|
219
228
|
seconds
|
|
@@ -276,6 +285,7 @@ export const QueryAlerts = gql `
|
|
|
276
285
|
to
|
|
277
286
|
}
|
|
278
287
|
inLast
|
|
288
|
+
inNext
|
|
279
289
|
creationDateRange {
|
|
280
290
|
from
|
|
281
291
|
to
|
|
@@ -406,6 +416,14 @@ export const QueryAlerts = gql `
|
|
|
406
416
|
id
|
|
407
417
|
}
|
|
408
418
|
}
|
|
419
|
+
quiverImage {
|
|
420
|
+
model
|
|
421
|
+
count
|
|
422
|
+
seed {
|
|
423
|
+
id
|
|
424
|
+
}
|
|
425
|
+
instructions
|
|
426
|
+
}
|
|
409
427
|
openAIVideo {
|
|
410
428
|
model
|
|
411
429
|
seconds
|
|
@@ -1217,9 +1235,9 @@ export const DescribeImage = gql `
|
|
|
1217
1235
|
}
|
|
1218
1236
|
}
|
|
1219
1237
|
`;
|
|
1220
|
-
export const
|
|
1221
|
-
mutation
|
|
1222
|
-
|
|
1238
|
+
export const Distribute = gql `
|
|
1239
|
+
mutation Distribute($connector: DistributionConnectorInput!, $authentication: EntityReferenceInput!, $text: String, $textType: TextTypes, $name: String, $filter: ContentFilter, $correlationId: String) {
|
|
1240
|
+
distribute(
|
|
1223
1241
|
connector: $connector
|
|
1224
1242
|
authentication: $authentication
|
|
1225
1243
|
text: $text
|
|
@@ -5534,6 +5552,7 @@ export const GetConversation = gql `
|
|
|
5534
5552
|
to
|
|
5535
5553
|
}
|
|
5536
5554
|
inLast
|
|
5555
|
+
inNext
|
|
5537
5556
|
creationDateRange {
|
|
5538
5557
|
from
|
|
5539
5558
|
to
|
|
@@ -5627,6 +5646,7 @@ export const GetConversation = gql `
|
|
|
5627
5646
|
to
|
|
5628
5647
|
}
|
|
5629
5648
|
inLast
|
|
5649
|
+
inNext
|
|
5630
5650
|
creationDateRange {
|
|
5631
5651
|
from
|
|
5632
5652
|
to
|
|
@@ -6579,6 +6599,7 @@ export const QueryConversations = gql `
|
|
|
6579
6599
|
to
|
|
6580
6600
|
}
|
|
6581
6601
|
inLast
|
|
6602
|
+
inNext
|
|
6582
6603
|
creationDateRange {
|
|
6583
6604
|
from
|
|
6584
6605
|
to
|
|
@@ -6672,6 +6693,7 @@ export const QueryConversations = gql `
|
|
|
6672
6693
|
to
|
|
6673
6694
|
}
|
|
6674
6695
|
inLast
|
|
6696
|
+
inNext
|
|
6675
6697
|
creationDateRange {
|
|
6676
6698
|
from
|
|
6677
6699
|
to
|
|
@@ -6954,6 +6976,7 @@ export const QueryConversationsClusters = gql `
|
|
|
6954
6976
|
to
|
|
6955
6977
|
}
|
|
6956
6978
|
inLast
|
|
6979
|
+
inNext
|
|
6957
6980
|
creationDateRange {
|
|
6958
6981
|
from
|
|
6959
6982
|
to
|
|
@@ -7047,6 +7070,7 @@ export const QueryConversationsClusters = gql `
|
|
|
7047
7070
|
to
|
|
7048
7071
|
}
|
|
7049
7072
|
inLast
|
|
7073
|
+
inNext
|
|
7050
7074
|
creationDateRange {
|
|
7051
7075
|
from
|
|
7052
7076
|
to
|
|
@@ -17128,6 +17152,7 @@ export const CreateView = gql `
|
|
|
17128
17152
|
to
|
|
17129
17153
|
}
|
|
17130
17154
|
inLast
|
|
17155
|
+
inNext
|
|
17131
17156
|
creationDateRange {
|
|
17132
17157
|
from
|
|
17133
17158
|
to
|
|
@@ -17221,6 +17246,7 @@ export const CreateView = gql `
|
|
|
17221
17246
|
to
|
|
17222
17247
|
}
|
|
17223
17248
|
inLast
|
|
17249
|
+
inNext
|
|
17224
17250
|
creationDateRange {
|
|
17225
17251
|
from
|
|
17226
17252
|
to
|
|
@@ -17357,6 +17383,7 @@ export const GetView = gql `
|
|
|
17357
17383
|
to
|
|
17358
17384
|
}
|
|
17359
17385
|
inLast
|
|
17386
|
+
inNext
|
|
17360
17387
|
creationDateRange {
|
|
17361
17388
|
from
|
|
17362
17389
|
to
|
|
@@ -17450,6 +17477,7 @@ export const GetView = gql `
|
|
|
17450
17477
|
to
|
|
17451
17478
|
}
|
|
17452
17479
|
inLast
|
|
17480
|
+
inNext
|
|
17453
17481
|
creationDateRange {
|
|
17454
17482
|
from
|
|
17455
17483
|
to
|
|
@@ -17560,6 +17588,7 @@ export const QueryViews = gql `
|
|
|
17560
17588
|
to
|
|
17561
17589
|
}
|
|
17562
17590
|
inLast
|
|
17591
|
+
inNext
|
|
17563
17592
|
creationDateRange {
|
|
17564
17593
|
from
|
|
17565
17594
|
to
|
|
@@ -17653,6 +17682,7 @@ export const QueryViews = gql `
|
|
|
17653
17682
|
to
|
|
17654
17683
|
}
|
|
17655
17684
|
inLast
|
|
17685
|
+
inNext
|
|
17656
17686
|
creationDateRange {
|
|
17657
17687
|
from
|
|
17658
17688
|
to
|
|
@@ -17757,6 +17787,7 @@ export const UpdateView = gql `
|
|
|
17757
17787
|
to
|
|
17758
17788
|
}
|
|
17759
17789
|
inLast
|
|
17790
|
+
inNext
|
|
17760
17791
|
creationDateRange {
|
|
17761
17792
|
from
|
|
17762
17793
|
to
|
|
@@ -17850,6 +17881,7 @@ export const UpdateView = gql `
|
|
|
17850
17881
|
to
|
|
17851
17882
|
}
|
|
17852
17883
|
inLast
|
|
17884
|
+
inNext
|
|
17853
17885
|
creationDateRange {
|
|
17854
17886
|
from
|
|
17855
17887
|
to
|
|
@@ -17953,6 +17985,7 @@ export const UpsertView = gql `
|
|
|
17953
17985
|
to
|
|
17954
17986
|
}
|
|
17955
17987
|
inLast
|
|
17988
|
+
inNext
|
|
17956
17989
|
creationDateRange {
|
|
17957
17990
|
from
|
|
17958
17991
|
to
|
|
@@ -18046,6 +18079,7 @@ export const UpsertView = gql `
|
|
|
18046
18079
|
to
|
|
18047
18080
|
}
|
|
18048
18081
|
inLast
|
|
18082
|
+
inNext
|
|
18049
18083
|
creationDateRange {
|
|
18050
18084
|
from
|
|
18051
18085
|
to
|
|
@@ -7667,8 +7667,10 @@ export type GoogleFeedPropertiesUpdateInput = {
|
|
|
7667
7667
|
export declare enum GoogleImageModels {
|
|
7668
7668
|
/** Developer-specified model */
|
|
7669
7669
|
Custom = "CUSTOM",
|
|
7670
|
-
/** @deprecated Model has been shut down. Use Gemini 3
|
|
7670
|
+
/** @deprecated Model has been shut down. Use Gemini 3.1 Flash Image Preview instead. */
|
|
7671
7671
|
Gemini_2_5FlashImagePreview = "GEMINI_2_5_FLASH_IMAGE_PREVIEW",
|
|
7672
|
+
/** Gemini 3.1 Flash Image Preview */
|
|
7673
|
+
Gemini_3_1FlashImagePreview = "GEMINI_3_1_FLASH_IMAGE_PREVIEW",
|
|
7672
7674
|
/** Gemini 3 Pro Image Preview */
|
|
7673
7675
|
Gemini_3ProImagePreview = "GEMINI_3_PRO_IMAGE_PREVIEW"
|
|
7674
7676
|
}
|
|
@@ -13503,8 +13505,8 @@ export type Mutation = {
|
|
|
13503
13505
|
disableFeed?: Maybe<Feed>;
|
|
13504
13506
|
/** Disables a user. */
|
|
13505
13507
|
disableUser?: Maybe<User>;
|
|
13506
|
-
/** Distribute
|
|
13507
|
-
|
|
13508
|
+
/** Distribute to an external service. */
|
|
13509
|
+
distribute?: Maybe<Array<DistributionResult>>;
|
|
13508
13510
|
/** Enables an alert. */
|
|
13509
13511
|
enableAlert?: Maybe<Alert>;
|
|
13510
13512
|
/** Enables a feed. */
|
|
@@ -14294,7 +14296,7 @@ export type MutationDisableFeedArgs = {
|
|
|
14294
14296
|
export type MutationDisableUserArgs = {
|
|
14295
14297
|
id: Scalars['ID']['input'];
|
|
14296
14298
|
};
|
|
14297
|
-
export type
|
|
14299
|
+
export type MutationDistributeArgs = {
|
|
14298
14300
|
authentication: EntityReferenceInput;
|
|
14299
14301
|
connector: DistributionConnectorInput;
|
|
14300
14302
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -21987,6 +21989,7 @@ export type GetAlertQuery = {
|
|
|
21987
21989
|
filter?: {
|
|
21988
21990
|
__typename?: 'ContentCriteria';
|
|
21989
21991
|
inLast?: any | null;
|
|
21992
|
+
inNext?: any | null;
|
|
21990
21993
|
createdInLast?: any | null;
|
|
21991
21994
|
types?: Array<ContentTypes> | null;
|
|
21992
21995
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -22157,6 +22160,16 @@ export type GetAlertQuery = {
|
|
|
22157
22160
|
id: string;
|
|
22158
22161
|
} | null;
|
|
22159
22162
|
} | null;
|
|
22163
|
+
quiverImage?: {
|
|
22164
|
+
__typename?: 'QuiverImagePublishingProperties';
|
|
22165
|
+
model?: QuiverImageModels | null;
|
|
22166
|
+
count?: number | null;
|
|
22167
|
+
instructions?: string | null;
|
|
22168
|
+
seed?: {
|
|
22169
|
+
__typename?: 'EntityReference';
|
|
22170
|
+
id: string;
|
|
22171
|
+
} | null;
|
|
22172
|
+
} | null;
|
|
22160
22173
|
openAIVideo?: {
|
|
22161
22174
|
__typename?: 'OpenAIVideoPublishingProperties';
|
|
22162
22175
|
model?: OpenAiVideoModels | null;
|
|
@@ -22231,6 +22244,7 @@ export type QueryAlertsQuery = {
|
|
|
22231
22244
|
filter?: {
|
|
22232
22245
|
__typename?: 'ContentCriteria';
|
|
22233
22246
|
inLast?: any | null;
|
|
22247
|
+
inNext?: any | null;
|
|
22234
22248
|
createdInLast?: any | null;
|
|
22235
22249
|
types?: Array<ContentTypes> | null;
|
|
22236
22250
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -22401,6 +22415,16 @@ export type QueryAlertsQuery = {
|
|
|
22401
22415
|
id: string;
|
|
22402
22416
|
} | null;
|
|
22403
22417
|
} | null;
|
|
22418
|
+
quiverImage?: {
|
|
22419
|
+
__typename?: 'QuiverImagePublishingProperties';
|
|
22420
|
+
model?: QuiverImageModels | null;
|
|
22421
|
+
count?: number | null;
|
|
22422
|
+
instructions?: string | null;
|
|
22423
|
+
seed?: {
|
|
22424
|
+
__typename?: 'EntityReference';
|
|
22425
|
+
id: string;
|
|
22426
|
+
} | null;
|
|
22427
|
+
} | null;
|
|
22404
22428
|
openAIVideo?: {
|
|
22405
22429
|
__typename?: 'OpenAIVideoPublishingProperties';
|
|
22406
22430
|
model?: OpenAiVideoModels | null;
|
|
@@ -23378,7 +23402,7 @@ export type DescribeImageMutation = {
|
|
|
23378
23402
|
} | null> | null;
|
|
23379
23403
|
} | null;
|
|
23380
23404
|
};
|
|
23381
|
-
export type
|
|
23405
|
+
export type DistributeMutationVariables = Exact<{
|
|
23382
23406
|
connector: DistributionConnectorInput;
|
|
23383
23407
|
authentication: EntityReferenceInput;
|
|
23384
23408
|
text?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -23387,9 +23411,9 @@ export type DistributeContentsMutationVariables = Exact<{
|
|
|
23387
23411
|
filter?: InputMaybe<ContentFilter>;
|
|
23388
23412
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
23389
23413
|
}>;
|
|
23390
|
-
export type
|
|
23414
|
+
export type DistributeMutation = {
|
|
23391
23415
|
__typename?: 'Mutation';
|
|
23392
|
-
|
|
23416
|
+
distribute?: Array<{
|
|
23393
23417
|
__typename?: 'DistributionResult';
|
|
23394
23418
|
uri?: string | null;
|
|
23395
23419
|
identifier?: string | null;
|
|
@@ -28213,6 +28237,7 @@ export type GetConversationQuery = {
|
|
|
28213
28237
|
filter?: {
|
|
28214
28238
|
__typename?: 'ContentCriteria';
|
|
28215
28239
|
inLast?: any | null;
|
|
28240
|
+
inNext?: any | null;
|
|
28216
28241
|
createdInLast?: any | null;
|
|
28217
28242
|
types?: Array<ContentTypes> | null;
|
|
28218
28243
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -28332,6 +28357,7 @@ export type GetConversationQuery = {
|
|
|
28332
28357
|
augmentedFilter?: {
|
|
28333
28358
|
__typename?: 'ContentCriteria';
|
|
28334
28359
|
inLast?: any | null;
|
|
28360
|
+
inNext?: any | null;
|
|
28335
28361
|
createdInLast?: any | null;
|
|
28336
28362
|
types?: Array<ContentTypes> | null;
|
|
28337
28363
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -29383,6 +29409,7 @@ export type QueryConversationsQuery = {
|
|
|
29383
29409
|
filter?: {
|
|
29384
29410
|
__typename?: 'ContentCriteria';
|
|
29385
29411
|
inLast?: any | null;
|
|
29412
|
+
inNext?: any | null;
|
|
29386
29413
|
createdInLast?: any | null;
|
|
29387
29414
|
types?: Array<ContentTypes> | null;
|
|
29388
29415
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -29502,6 +29529,7 @@ export type QueryConversationsQuery = {
|
|
|
29502
29529
|
augmentedFilter?: {
|
|
29503
29530
|
__typename?: 'ContentCriteria';
|
|
29504
29531
|
inLast?: any | null;
|
|
29532
|
+
inNext?: any | null;
|
|
29505
29533
|
createdInLast?: any | null;
|
|
29506
29534
|
types?: Array<ContentTypes> | null;
|
|
29507
29535
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -29827,6 +29855,7 @@ export type QueryConversationsClustersQuery = {
|
|
|
29827
29855
|
filter?: {
|
|
29828
29856
|
__typename?: 'ContentCriteria';
|
|
29829
29857
|
inLast?: any | null;
|
|
29858
|
+
inNext?: any | null;
|
|
29830
29859
|
createdInLast?: any | null;
|
|
29831
29860
|
types?: Array<ContentTypes> | null;
|
|
29832
29861
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -29946,6 +29975,7 @@ export type QueryConversationsClustersQuery = {
|
|
|
29946
29975
|
augmentedFilter?: {
|
|
29947
29976
|
__typename?: 'ContentCriteria';
|
|
29948
29977
|
inLast?: any | null;
|
|
29978
|
+
inNext?: any | null;
|
|
29949
29979
|
createdInLast?: any | null;
|
|
29950
29980
|
types?: Array<ContentTypes> | null;
|
|
29951
29981
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42090,6 +42120,7 @@ export type CreateViewMutation = {
|
|
|
42090
42120
|
filter?: {
|
|
42091
42121
|
__typename?: 'ContentCriteria';
|
|
42092
42122
|
inLast?: any | null;
|
|
42123
|
+
inNext?: any | null;
|
|
42093
42124
|
createdInLast?: any | null;
|
|
42094
42125
|
types?: Array<ContentTypes> | null;
|
|
42095
42126
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42209,6 +42240,7 @@ export type CreateViewMutation = {
|
|
|
42209
42240
|
augmentedFilter?: {
|
|
42210
42241
|
__typename?: 'ContentCriteria';
|
|
42211
42242
|
inLast?: any | null;
|
|
42243
|
+
inNext?: any | null;
|
|
42212
42244
|
createdInLast?: any | null;
|
|
42213
42245
|
types?: Array<ContentTypes> | null;
|
|
42214
42246
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42384,6 +42416,7 @@ export type GetViewQuery = {
|
|
|
42384
42416
|
filter?: {
|
|
42385
42417
|
__typename?: 'ContentCriteria';
|
|
42386
42418
|
inLast?: any | null;
|
|
42419
|
+
inNext?: any | null;
|
|
42387
42420
|
createdInLast?: any | null;
|
|
42388
42421
|
types?: Array<ContentTypes> | null;
|
|
42389
42422
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42503,6 +42536,7 @@ export type GetViewQuery = {
|
|
|
42503
42536
|
augmentedFilter?: {
|
|
42504
42537
|
__typename?: 'ContentCriteria';
|
|
42505
42538
|
inLast?: any | null;
|
|
42539
|
+
inNext?: any | null;
|
|
42506
42540
|
createdInLast?: any | null;
|
|
42507
42541
|
types?: Array<ContentTypes> | null;
|
|
42508
42542
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42645,6 +42679,7 @@ export type QueryViewsQuery = {
|
|
|
42645
42679
|
filter?: {
|
|
42646
42680
|
__typename?: 'ContentCriteria';
|
|
42647
42681
|
inLast?: any | null;
|
|
42682
|
+
inNext?: any | null;
|
|
42648
42683
|
createdInLast?: any | null;
|
|
42649
42684
|
types?: Array<ContentTypes> | null;
|
|
42650
42685
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42764,6 +42799,7 @@ export type QueryViewsQuery = {
|
|
|
42764
42799
|
augmentedFilter?: {
|
|
42765
42800
|
__typename?: 'ContentCriteria';
|
|
42766
42801
|
inLast?: any | null;
|
|
42802
|
+
inNext?: any | null;
|
|
42767
42803
|
createdInLast?: any | null;
|
|
42768
42804
|
types?: Array<ContentTypes> | null;
|
|
42769
42805
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -42897,6 +42933,7 @@ export type UpdateViewMutation = {
|
|
|
42897
42933
|
filter?: {
|
|
42898
42934
|
__typename?: 'ContentCriteria';
|
|
42899
42935
|
inLast?: any | null;
|
|
42936
|
+
inNext?: any | null;
|
|
42900
42937
|
createdInLast?: any | null;
|
|
42901
42938
|
types?: Array<ContentTypes> | null;
|
|
42902
42939
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -43016,6 +43053,7 @@ export type UpdateViewMutation = {
|
|
|
43016
43053
|
augmentedFilter?: {
|
|
43017
43054
|
__typename?: 'ContentCriteria';
|
|
43018
43055
|
inLast?: any | null;
|
|
43056
|
+
inNext?: any | null;
|
|
43019
43057
|
createdInLast?: any | null;
|
|
43020
43058
|
types?: Array<ContentTypes> | null;
|
|
43021
43059
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -43148,6 +43186,7 @@ export type UpsertViewMutation = {
|
|
|
43148
43186
|
filter?: {
|
|
43149
43187
|
__typename?: 'ContentCriteria';
|
|
43150
43188
|
inLast?: any | null;
|
|
43189
|
+
inNext?: any | null;
|
|
43151
43190
|
createdInLast?: any | null;
|
|
43152
43191
|
types?: Array<ContentTypes> | null;
|
|
43153
43192
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -43267,6 +43306,7 @@ export type UpsertViewMutation = {
|
|
|
43267
43306
|
augmentedFilter?: {
|
|
43268
43307
|
__typename?: 'ContentCriteria';
|
|
43269
43308
|
inLast?: any | null;
|
|
43309
|
+
inNext?: any | null;
|
|
43270
43310
|
createdInLast?: any | null;
|
|
43271
43311
|
types?: Array<ContentTypes> | null;
|
|
43272
43312
|
fileTypes?: Array<FileTypes> | null;
|
|
@@ -1496,8 +1496,10 @@ export var GoogleImageModels;
|
|
|
1496
1496
|
(function (GoogleImageModels) {
|
|
1497
1497
|
/** Developer-specified model */
|
|
1498
1498
|
GoogleImageModels["Custom"] = "CUSTOM";
|
|
1499
|
-
/** @deprecated Model has been shut down. Use Gemini 3
|
|
1499
|
+
/** @deprecated Model has been shut down. Use Gemini 3.1 Flash Image Preview instead. */
|
|
1500
1500
|
GoogleImageModels["Gemini_2_5FlashImagePreview"] = "GEMINI_2_5_FLASH_IMAGE_PREVIEW";
|
|
1501
|
+
/** Gemini 3.1 Flash Image Preview */
|
|
1502
|
+
GoogleImageModels["Gemini_3_1FlashImagePreview"] = "GEMINI_3_1_FLASH_IMAGE_PREVIEW";
|
|
1501
1503
|
/** Gemini 3 Pro Image Preview */
|
|
1502
1504
|
GoogleImageModels["Gemini_3ProImagePreview"] = "GEMINI_3_PRO_IMAGE_PREVIEW";
|
|
1503
1505
|
})(GoogleImageModels || (GoogleImageModels = {}));
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface ArtifactCollector {
|
|
|
7
7
|
id: string;
|
|
8
8
|
}[]>;
|
|
9
9
|
}
|
|
10
|
-
export type ToolHandler = (args: any, artifacts?: ArtifactCollector) => Promise<any>;
|
|
10
|
+
export type ToolHandler = (args: any, artifacts?: ArtifactCollector, abortSignal?: AbortSignal) => Promise<any>;
|
|
11
11
|
export interface ContextStrategy {
|
|
12
12
|
/** Max tokens for any single tool result. Results exceeding this are truncated. Default: 8192 */
|
|
13
13
|
toolResultTokenLimit?: number;
|