@dudousxd/nestjs-agent-core 0.27.0 → 0.28.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/dist/genui/index.d.cts +1 -1
- package/dist/genui/index.d.ts +1 -1
- package/dist/guardrails/index.d.cts +2 -2
- package/dist/guardrails/index.d.ts +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -5
- package/dist/index.d.ts +22 -5
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{processors-CK1RWv0D.d.ts → processors-Bhn6ehMM.d.ts} +1 -1
- package/dist/{processors-Bf1fYLbY.d.cts → processors-nr6jwLAh.d.cts} +1 -1
- package/dist/{tool-BXKG2xSm.d.cts → tool-BJ5jVoH2.d.cts} +31 -2
- package/dist/{tool-BXKG2xSm.d.ts → tool-BJ5jVoH2.d.ts} +31 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-
|
|
1
|
+
import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-BJ5jVoH2.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The two seams that see a turn's traffic to and from the model: an {@link InputProcessor} rewrites
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-
|
|
1
|
+
import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-BJ5jVoH2.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The two seams that see a turn's traffic to and from the model: an {@link InputProcessor} rewrites
|
|
@@ -1250,7 +1250,6 @@ interface ToolCallApproval {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
interface ThreadDetail extends ThreadSummary {
|
|
1252
1252
|
messages: StoredMessage[];
|
|
1253
|
-
activeStreamId?: string;
|
|
1254
1253
|
}
|
|
1255
1254
|
type ToolCallStatus = 'auto_executed' | 'pending_approval' | 'executed' | 'rejected' | 'failed'
|
|
1256
1255
|
/** An approval request lapsed before anyone decided; the tool never ran. */
|
|
@@ -1316,6 +1315,36 @@ interface ToolStepEnvelope {
|
|
|
1316
1315
|
*/
|
|
1317
1316
|
collectUi?: boolean;
|
|
1318
1317
|
}
|
|
1318
|
+
/**
|
|
1319
|
+
* What `GET <base>/config` answers — server-side facts a client would otherwise repeat in its own
|
|
1320
|
+
* configuration (and let drift).
|
|
1321
|
+
*/
|
|
1322
|
+
interface AgentClientConfig {
|
|
1323
|
+
attachments: AgentAttachmentConfig;
|
|
1324
|
+
/** A model catalog is bound, so `GET <base>/models` lists something to pick. */
|
|
1325
|
+
models: {
|
|
1326
|
+
enabled: boolean;
|
|
1327
|
+
};
|
|
1328
|
+
/** Sends are refused with `429` once `GET <base>/quota` reports `blocked`. */
|
|
1329
|
+
quota: {
|
|
1330
|
+
enforced: boolean;
|
|
1331
|
+
};
|
|
1332
|
+
/** No `actorResolver`: every browser is its own anonymous actor. */
|
|
1333
|
+
identity: {
|
|
1334
|
+
anonymous: boolean;
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
/** The attachment rules in force — what the upload route enforces. */
|
|
1338
|
+
interface AgentAttachmentConfig {
|
|
1339
|
+
/** A staging store is bound, so uploads work at all. */
|
|
1340
|
+
enabled: boolean;
|
|
1341
|
+
/** How a client uploads (`null` when `enabled` is false). */
|
|
1342
|
+
upload: 'multipart' | 'resumable' | null;
|
|
1343
|
+
maxBytes: number;
|
|
1344
|
+
allowedContentTypes: readonly string[];
|
|
1345
|
+
/** How many attachments one message may name. */
|
|
1346
|
+
maxPerMessage: number;
|
|
1347
|
+
}
|
|
1319
1348
|
|
|
1320
1349
|
/**
|
|
1321
1350
|
* Per-invocation context handed to a tool handler. Host-supplied bits are optional. Identity lives
|
|
@@ -1411,4 +1440,4 @@ interface ToolDescription {
|
|
|
1411
1440
|
inputSchema?: StandardSchemaV1;
|
|
1412
1441
|
}
|
|
1413
1442
|
|
|
1414
|
-
export { type
|
|
1443
|
+
export { type ElicitationOption as $, type Actor as A, type ToolStepEnvelope as B, ASK_TOOL_DESCRIPTION as C, type DetachedDelivery as D, type ElicitationRequest as E, ASK_TOOL_NAME as F, type AgentApprovalRequest as G, type HumanReply as H, type AgentApprovalSettlement as I, type AgentAttachmentConfig as J, type AgentCatalogEntry as K, type LlmStepEnvelope as L, type ModelMessage as M, type AgentClientConfig as N, type AgentHistoryWindow as O, type PageContext as P, type QuotaState as Q, type AskToolInput as R, type StoredMessage as S, type ToolSpec as T, type UsagePurpose as U, DEFAULT_INTAKE_PREAMBLE as V, DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS as W, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS as X, ELICITATION_INPUT_TYPES as Y, type ElicitationInput as Z, type ElicitationInputType as _, type ToolHandler as a, type ElicitationOutcome as a0, type ElicitationQuestion as a1, type ElicitationReply as a2, type ElicitationResult as a3, type HistoryPolicyContext as a4, type HistorySelection as a5, type HistorySummary as a6, type InvokeWithTransientRetryOptions as a7, MAX_ASK_QUESTIONS as a8, type MessageFeedbackValue as a9, resolveToolTransientRetryNumbers as aA, settleElicitation as aB, validateElicitationAnswer as aC, validateElicitationValue as aD, type MessageRole as aa, type PromptContext as ab, type QuotaView as ac, type ToolCallApprovalStatus as ad, type ToolCatalogEntry as ae, type ToolConfirmation as af, type ToolDescription as ag, type ToolPresentationTone as ah, type ToolResultField as ai, type ToolResultView as aj, type ToolStepCtx as ak, type ToolTransientRetryNumbers as al, type ToolTransientRetryOptions as am, askInputSchema as an, askToolDefinition as ao, decodeStreamEvent as ap, encodeStreamEvent as aq, invokeWithTransientRetry as ar, isTransientToolError as as, isTypedQuestion as at, normalizeElicitationReply as au, questionOptions as av, readElicitationInput as aw, readElicitationQuestions as ax, renderElicitationAnswers as ay, resolveElicitation as az, type ToolPresentation as b, type ToolDefinition as c, type ToolCallRequest as d, type MessageUsage as e, type AgentUiComponent as f, type AiToolCtx as g, type AgentStreamEvent as h, type ThreadSummary as i, type ThreadDetail as j, type ToolResult as k, type MessageAttachment as l, type MessageFeedback as m, type ToolCallStatus as n, type AgentRunInput as o, type ToolKind as p, type ToolCallApproval as q, type HistoryPolicy as r, type AgentDefinition as s, type AgentDelegation as t, type ToolDescribeScope as u, type PromptBuilder as v, type PromptContributor as w, type ToolTransientRetrySetting as x, type AgentIntake as y, type Decision as z };
|
|
@@ -1250,7 +1250,6 @@ interface ToolCallApproval {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
interface ThreadDetail extends ThreadSummary {
|
|
1252
1252
|
messages: StoredMessage[];
|
|
1253
|
-
activeStreamId?: string;
|
|
1254
1253
|
}
|
|
1255
1254
|
type ToolCallStatus = 'auto_executed' | 'pending_approval' | 'executed' | 'rejected' | 'failed'
|
|
1256
1255
|
/** An approval request lapsed before anyone decided; the tool never ran. */
|
|
@@ -1316,6 +1315,36 @@ interface ToolStepEnvelope {
|
|
|
1316
1315
|
*/
|
|
1317
1316
|
collectUi?: boolean;
|
|
1318
1317
|
}
|
|
1318
|
+
/**
|
|
1319
|
+
* What `GET <base>/config` answers — server-side facts a client would otherwise repeat in its own
|
|
1320
|
+
* configuration (and let drift).
|
|
1321
|
+
*/
|
|
1322
|
+
interface AgentClientConfig {
|
|
1323
|
+
attachments: AgentAttachmentConfig;
|
|
1324
|
+
/** A model catalog is bound, so `GET <base>/models` lists something to pick. */
|
|
1325
|
+
models: {
|
|
1326
|
+
enabled: boolean;
|
|
1327
|
+
};
|
|
1328
|
+
/** Sends are refused with `429` once `GET <base>/quota` reports `blocked`. */
|
|
1329
|
+
quota: {
|
|
1330
|
+
enforced: boolean;
|
|
1331
|
+
};
|
|
1332
|
+
/** No `actorResolver`: every browser is its own anonymous actor. */
|
|
1333
|
+
identity: {
|
|
1334
|
+
anonymous: boolean;
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
/** The attachment rules in force — what the upload route enforces. */
|
|
1338
|
+
interface AgentAttachmentConfig {
|
|
1339
|
+
/** A staging store is bound, so uploads work at all. */
|
|
1340
|
+
enabled: boolean;
|
|
1341
|
+
/** How a client uploads (`null` when `enabled` is false). */
|
|
1342
|
+
upload: 'multipart' | 'resumable' | null;
|
|
1343
|
+
maxBytes: number;
|
|
1344
|
+
allowedContentTypes: readonly string[];
|
|
1345
|
+
/** How many attachments one message may name. */
|
|
1346
|
+
maxPerMessage: number;
|
|
1347
|
+
}
|
|
1319
1348
|
|
|
1320
1349
|
/**
|
|
1321
1350
|
* Per-invocation context handed to a tool handler. Host-supplied bits are optional. Identity lives
|
|
@@ -1411,4 +1440,4 @@ interface ToolDescription {
|
|
|
1411
1440
|
inputSchema?: StandardSchemaV1;
|
|
1412
1441
|
}
|
|
1413
1442
|
|
|
1414
|
-
export { type
|
|
1443
|
+
export { type ElicitationOption as $, type Actor as A, type ToolStepEnvelope as B, ASK_TOOL_DESCRIPTION as C, type DetachedDelivery as D, type ElicitationRequest as E, ASK_TOOL_NAME as F, type AgentApprovalRequest as G, type HumanReply as H, type AgentApprovalSettlement as I, type AgentAttachmentConfig as J, type AgentCatalogEntry as K, type LlmStepEnvelope as L, type ModelMessage as M, type AgentClientConfig as N, type AgentHistoryWindow as O, type PageContext as P, type QuotaState as Q, type AskToolInput as R, type StoredMessage as S, type ToolSpec as T, type UsagePurpose as U, DEFAULT_INTAKE_PREAMBLE as V, DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS as W, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS as X, ELICITATION_INPUT_TYPES as Y, type ElicitationInput as Z, type ElicitationInputType as _, type ToolHandler as a, type ElicitationOutcome as a0, type ElicitationQuestion as a1, type ElicitationReply as a2, type ElicitationResult as a3, type HistoryPolicyContext as a4, type HistorySelection as a5, type HistorySummary as a6, type InvokeWithTransientRetryOptions as a7, MAX_ASK_QUESTIONS as a8, type MessageFeedbackValue as a9, resolveToolTransientRetryNumbers as aA, settleElicitation as aB, validateElicitationAnswer as aC, validateElicitationValue as aD, type MessageRole as aa, type PromptContext as ab, type QuotaView as ac, type ToolCallApprovalStatus as ad, type ToolCatalogEntry as ae, type ToolConfirmation as af, type ToolDescription as ag, type ToolPresentationTone as ah, type ToolResultField as ai, type ToolResultView as aj, type ToolStepCtx as ak, type ToolTransientRetryNumbers as al, type ToolTransientRetryOptions as am, askInputSchema as an, askToolDefinition as ao, decodeStreamEvent as ap, encodeStreamEvent as aq, invokeWithTransientRetry as ar, isTransientToolError as as, isTypedQuestion as at, normalizeElicitationReply as au, questionOptions as av, readElicitationInput as aw, readElicitationQuestions as ax, renderElicitationAnswers as ay, resolveElicitation as az, type ToolPresentation as b, type ToolDefinition as c, type ToolCallRequest as d, type MessageUsage as e, type AgentUiComponent as f, type AiToolCtx as g, type AgentStreamEvent as h, type ThreadSummary as i, type ThreadDetail as j, type ToolResult as k, type MessageAttachment as l, type MessageFeedback as m, type ToolCallStatus as n, type AgentRunInput as o, type ToolKind as p, type ToolCallApproval as q, type HistoryPolicy as r, type AgentDefinition as s, type AgentDelegation as t, type ToolDescribeScope as u, type PromptBuilder as v, type PromptContributor as w, type ToolTransientRetrySetting as x, type AgentIntake as y, type Decision as z };
|