graphlit-client 1.0.20260403001 → 1.0.20260403003

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.
@@ -293,6 +293,7 @@ export const GetAgent = gql `
293
293
  timeout
294
294
  prompt
295
295
  scratchpad
296
+ researchDepth
296
297
  callbackUri
297
298
  }
298
299
  }
@@ -529,6 +530,7 @@ export const QueryAgents = gql `
529
530
  timeout
530
531
  prompt
531
532
  scratchpad
533
+ researchDepth
532
534
  callbackUri
533
535
  }
534
536
  }
@@ -141,6 +141,8 @@ export type Agent = {
141
141
  prompt?: Maybe<Scalars['String']['output']>;
142
142
  /** The relevance score of the agent. */
143
143
  relevance?: Maybe<Scalars['Float']['output']>;
144
+ /** The agent research depth. Defaults to STANDARD. */
145
+ researchDepth?: Maybe<AgentResearchDepths>;
144
146
  /** The agent schedule policy. */
145
147
  schedulePolicy?: Maybe<AgentSchedulePolicy>;
146
148
  /** The agent scratchpad, for storing harness working memory. */
@@ -253,6 +255,8 @@ export type AgentInput = {
253
255
  name: Scalars['String']['input'];
254
256
  /** The execution prompt run on each triggered activation. */
255
257
  prompt?: InputMaybe<Scalars['String']['input']>;
258
+ /** The agent research depth. Defaults to STANDARD. */
259
+ researchDepth?: InputMaybe<AgentResearchDepths>;
256
260
  /** The agent schedule policy. */
257
261
  schedulePolicy?: InputMaybe<AgentSchedulePolicyInput>;
258
262
  /** The agent scratchpad, for storing harness working memory. */
@@ -266,6 +270,17 @@ export type AgentInput = {
266
270
  /** The agent type. */
267
271
  type: AgentTypes;
268
272
  };
273
+ /** Agent research depth */
274
+ export declare enum AgentResearchDepths {
275
+ /** Deep research */
276
+ Deep = "DEEP",
277
+ /** Exhaustive research */
278
+ Exhaustive = "EXHAUSTIVE",
279
+ /** Quick research */
280
+ Quick = "QUICK",
281
+ /** Standard research */
282
+ Standard = "STANDARD"
283
+ }
269
284
  /** Represents agent query results. */
270
285
  export type AgentResults = {
271
286
  __typename?: 'AgentResults';
@@ -339,6 +354,8 @@ export type AgentUpdateInput = {
339
354
  name?: InputMaybe<Scalars['String']['input']>;
340
355
  /** The execution prompt run on each triggered activation. */
341
356
  prompt?: InputMaybe<Scalars['String']['input']>;
357
+ /** The agent research depth. Defaults to STANDARD. */
358
+ researchDepth?: InputMaybe<AgentResearchDepths>;
342
359
  /** The agent schedule policy. */
343
360
  schedulePolicy?: InputMaybe<AgentSchedulePolicyInput>;
344
361
  /** The agent scratchpad, for storing harness working memory. */
@@ -25275,6 +25292,7 @@ export type GetAgentQuery = {
25275
25292
  timeout?: any | null;
25276
25293
  prompt?: string | null;
25277
25294
  scratchpad?: string | null;
25295
+ researchDepth?: AgentResearchDepths | null;
25278
25296
  callbackUri?: any | null;
25279
25297
  owner: {
25280
25298
  __typename?: 'Owner';
@@ -25579,6 +25597,7 @@ export type QueryAgentsQuery = {
25579
25597
  timeout?: any | null;
25580
25598
  prompt?: string | null;
25581
25599
  scratchpad?: string | null;
25600
+ researchDepth?: AgentResearchDepths | null;
25582
25601
  callbackUri?: any | null;
25583
25602
  owner: {
25584
25603
  __typename?: 'Owner';
@@ -20,6 +20,18 @@ export var AgentChannelTypes;
20
20
  /** WhatsApp */
21
21
  AgentChannelTypes["WhatsApp"] = "WHATS_APP";
22
22
  })(AgentChannelTypes || (AgentChannelTypes = {}));
23
+ /** Agent research depth */
24
+ export var AgentResearchDepths;
25
+ (function (AgentResearchDepths) {
26
+ /** Deep research */
27
+ AgentResearchDepths["Deep"] = "DEEP";
28
+ /** Exhaustive research */
29
+ AgentResearchDepths["Exhaustive"] = "EXHAUSTIVE";
30
+ /** Quick research */
31
+ AgentResearchDepths["Quick"] = "QUICK";
32
+ /** Standard research */
33
+ AgentResearchDepths["Standard"] = "STANDARD";
34
+ })(AgentResearchDepths || (AgentResearchDepths = {}));
23
35
  /** Agent type */
24
36
  export var AgentTypes;
25
37
  (function (AgentTypes) {
@@ -13,7 +13,7 @@ export declare function estimateTokens(text: string): number;
13
13
  * Values can be provided by the server (via ConversationStrategy) or set client-side.
14
14
  */
15
15
  export interface ContextStrategyConfig {
16
- /** Max tokens for any single tool result. Results exceeding this are truncated. Default: 8192 */
16
+ /** Max tokens for any single tool result. Results exceeding this are truncated. Default: 128000 */
17
17
  toolResultTokenLimit: number;
18
18
  /** Max tool call/response rounds to keep in context. Older rounds are dropped FIFO. Default: 10 */
19
19
  toolRoundLimit: number;
@@ -35,7 +35,7 @@ export function estimateTokens(text) {
35
35
  return Math.ceil(text.length / 3.5);
36
36
  }
37
37
  export const DEFAULT_CONTEXT_STRATEGY = {
38
- toolResultTokenLimit: 8192,
38
+ toolResultTokenLimit: 128_000,
39
39
  toolRoundLimit: 10,
40
40
  rebudgetThreshold: 0.75,
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260403001",
3
+ "version": "1.0.20260403003",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",