@dudousxd/nestjs-agent-core 0.29.0 → 0.31.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 +49 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -6
- package/dist/index.d.ts +48 -6
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/dist/{processors-BrGKQgLf.d.ts → processors-C3Qx3ZdF.d.ts} +1 -1
- package/dist/{processors-3FixaBnr.d.cts → processors-DdnRmmlq.d.cts} +1 -1
- package/dist/{tool-CON4ZOrD.d.cts → tool-B0J4Fjyd.d.cts} +23 -1
- package/dist/{tool-CON4ZOrD.d.ts → tool-B0J4Fjyd.d.ts} +23 -1
- 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-B0J4Fjyd.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-B0J4Fjyd.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
|
|
@@ -152,6 +152,11 @@ interface ElicitationReply {
|
|
|
152
152
|
skipped?: boolean;
|
|
153
153
|
/** Opaque ref of WHO answered, when it wasn't the run's own actor. */
|
|
154
154
|
answeredByRef?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The surface the answer came through — `'web'`, `'slack'`, `'console'`, … — the counterpart of
|
|
157
|
+
* an approval's `decidedVia`.
|
|
158
|
+
*/
|
|
159
|
+
answeredVia?: string;
|
|
155
160
|
}
|
|
156
161
|
/** A settled elicitation: what the agent proceeds on, and how it got there. */
|
|
157
162
|
interface ElicitationOutcome {
|
|
@@ -160,6 +165,13 @@ interface ElicitationOutcome {
|
|
|
160
165
|
skipped: boolean;
|
|
161
166
|
/** Question ids filled from the request's `defaults` rather than by the human. */
|
|
162
167
|
defaulted: string[];
|
|
168
|
+
/**
|
|
169
|
+
* Who answered (or skipped) — the reply's `answeredByRef`, which a host may make a display name.
|
|
170
|
+
* The counterpart of an approval's `decidedBy`. Absent when the reply did not say.
|
|
171
|
+
*/
|
|
172
|
+
answeredBy?: string;
|
|
173
|
+
/** The surface it came through (`'web'`, `'slack'`, …) — an approval's `decidedVia`. */
|
|
174
|
+
answeredVia?: string;
|
|
163
175
|
}
|
|
164
176
|
/**
|
|
165
177
|
* Read whatever the human channel delivered as an {@link ElicitationReply}.
|
|
@@ -655,6 +667,11 @@ type ToolResultView =
|
|
|
655
667
|
| {
|
|
656
668
|
kind: 'elsewhere';
|
|
657
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
* `GET <base>/tools?agent=*` (and `useToolCatalog({ agent: ALL_AGENTS })`): every tool the actor
|
|
672
|
+
* reaches through ANY agent, each once — for a surface that shows several agents' conversations.
|
|
673
|
+
*/
|
|
674
|
+
declare const ALL_AGENTS = "*";
|
|
658
675
|
/**
|
|
659
676
|
* One tool as `GET <base>/tools` reports it: the tools THIS actor may be offered by the chosen agent,
|
|
660
677
|
* with how each is spoken about. `presentation` is absent for a tool that declared none — a client
|
|
@@ -1165,6 +1182,11 @@ interface AgentCatalogEntry {
|
|
|
1165
1182
|
description: string;
|
|
1166
1183
|
/** Whether this is the agent a turn uses when the caller names none. Omitted when not the default. */
|
|
1167
1184
|
isDefault?: boolean;
|
|
1185
|
+
/**
|
|
1186
|
+
* The catalog model this agent always runs on, when it is locked to one — an agent picker can say
|
|
1187
|
+
* so before a chat starts. `GET <base>/models?agent=` reports the same lock as `locked`.
|
|
1188
|
+
*/
|
|
1189
|
+
lockedModel?: string;
|
|
1168
1190
|
}
|
|
1169
1191
|
interface ThreadSummary {
|
|
1170
1192
|
id: string;
|
|
@@ -1463,4 +1485,4 @@ interface ToolDescription {
|
|
|
1463
1485
|
inputSchema?: StandardSchemaV1;
|
|
1464
1486
|
}
|
|
1465
1487
|
|
|
1466
|
-
export { type
|
|
1488
|
+
export { type ElicitationInputType as $, type Actor as A, type ToolStepEnvelope as B, ALL_AGENTS as C, type DetachedDelivery as D, type ElicitationRequest as E, ASK_TOOL_DESCRIPTION as F, ASK_TOOL_NAME as G, type HumanReply as H, type AgentApprovalRequest as I, type AgentApprovalSettlement as J, type AgentAttachmentConfig as K, type LlmStepEnvelope as L, type ModelMessage as M, type AgentCatalogEntry as N, type AgentClientConfig as O, type PageContext as P, type QuotaState as Q, type AgentHistoryWindow as R, type StoredMessage as S, type ToolSpec as T, type UsagePurpose as U, type AskToolInput as V, DEFAULT_INTAKE_PREAMBLE as W, DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS as X, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS as Y, ELICITATION_INPUT_TYPES as Z, type ElicitationInput as _, type ToolHandler as a, type ElicitationOption as a0, type ElicitationOutcome as a1, type ElicitationQuestion as a2, type ElicitationReply as a3, type ElicitationResult as a4, type HistoryPolicyContext as a5, type HistorySelection as a6, type HistorySummary as a7, type InvokeWithTransientRetryOptions as a8, MAX_ASK_QUESTIONS as a9, resolveElicitation as aA, resolveToolTransientRetryNumbers as aB, settleElicitation as aC, validateElicitationAnswer as aD, validateElicitationValue as aE, type MessageFeedbackValue as aa, type MessageRole as ab, type PromptContext as ac, type QuotaView as ad, type ToolCallApprovalStatus as ae, type ToolCatalogEntry as af, type ToolConfirmation as ag, type ToolDescription as ah, type ToolPresentationTone as ai, type ToolResultField as aj, type ToolResultView as ak, type ToolStepCtx as al, type ToolTransientRetryNumbers as am, type ToolTransientRetryOptions as an, askInputSchema as ao, askToolDefinition as ap, decodeStreamEvent as aq, encodeStreamEvent as ar, invokeWithTransientRetry as as, isTransientToolError as at, isTypedQuestion as au, normalizeElicitationReply as av, questionOptions as aw, readElicitationInput as ax, readElicitationQuestions as ay, renderElicitationAnswers 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 };
|
|
@@ -152,6 +152,11 @@ interface ElicitationReply {
|
|
|
152
152
|
skipped?: boolean;
|
|
153
153
|
/** Opaque ref of WHO answered, when it wasn't the run's own actor. */
|
|
154
154
|
answeredByRef?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The surface the answer came through — `'web'`, `'slack'`, `'console'`, … — the counterpart of
|
|
157
|
+
* an approval's `decidedVia`.
|
|
158
|
+
*/
|
|
159
|
+
answeredVia?: string;
|
|
155
160
|
}
|
|
156
161
|
/** A settled elicitation: what the agent proceeds on, and how it got there. */
|
|
157
162
|
interface ElicitationOutcome {
|
|
@@ -160,6 +165,13 @@ interface ElicitationOutcome {
|
|
|
160
165
|
skipped: boolean;
|
|
161
166
|
/** Question ids filled from the request's `defaults` rather than by the human. */
|
|
162
167
|
defaulted: string[];
|
|
168
|
+
/**
|
|
169
|
+
* Who answered (or skipped) — the reply's `answeredByRef`, which a host may make a display name.
|
|
170
|
+
* The counterpart of an approval's `decidedBy`. Absent when the reply did not say.
|
|
171
|
+
*/
|
|
172
|
+
answeredBy?: string;
|
|
173
|
+
/** The surface it came through (`'web'`, `'slack'`, …) — an approval's `decidedVia`. */
|
|
174
|
+
answeredVia?: string;
|
|
163
175
|
}
|
|
164
176
|
/**
|
|
165
177
|
* Read whatever the human channel delivered as an {@link ElicitationReply}.
|
|
@@ -655,6 +667,11 @@ type ToolResultView =
|
|
|
655
667
|
| {
|
|
656
668
|
kind: 'elsewhere';
|
|
657
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
* `GET <base>/tools?agent=*` (and `useToolCatalog({ agent: ALL_AGENTS })`): every tool the actor
|
|
672
|
+
* reaches through ANY agent, each once — for a surface that shows several agents' conversations.
|
|
673
|
+
*/
|
|
674
|
+
declare const ALL_AGENTS = "*";
|
|
658
675
|
/**
|
|
659
676
|
* One tool as `GET <base>/tools` reports it: the tools THIS actor may be offered by the chosen agent,
|
|
660
677
|
* with how each is spoken about. `presentation` is absent for a tool that declared none — a client
|
|
@@ -1165,6 +1182,11 @@ interface AgentCatalogEntry {
|
|
|
1165
1182
|
description: string;
|
|
1166
1183
|
/** Whether this is the agent a turn uses when the caller names none. Omitted when not the default. */
|
|
1167
1184
|
isDefault?: boolean;
|
|
1185
|
+
/**
|
|
1186
|
+
* The catalog model this agent always runs on, when it is locked to one — an agent picker can say
|
|
1187
|
+
* so before a chat starts. `GET <base>/models?agent=` reports the same lock as `locked`.
|
|
1188
|
+
*/
|
|
1189
|
+
lockedModel?: string;
|
|
1168
1190
|
}
|
|
1169
1191
|
interface ThreadSummary {
|
|
1170
1192
|
id: string;
|
|
@@ -1463,4 +1485,4 @@ interface ToolDescription {
|
|
|
1463
1485
|
inputSchema?: StandardSchemaV1;
|
|
1464
1486
|
}
|
|
1465
1487
|
|
|
1466
|
-
export { type
|
|
1488
|
+
export { type ElicitationInputType as $, type Actor as A, type ToolStepEnvelope as B, ALL_AGENTS as C, type DetachedDelivery as D, type ElicitationRequest as E, ASK_TOOL_DESCRIPTION as F, ASK_TOOL_NAME as G, type HumanReply as H, type AgentApprovalRequest as I, type AgentApprovalSettlement as J, type AgentAttachmentConfig as K, type LlmStepEnvelope as L, type ModelMessage as M, type AgentCatalogEntry as N, type AgentClientConfig as O, type PageContext as P, type QuotaState as Q, type AgentHistoryWindow as R, type StoredMessage as S, type ToolSpec as T, type UsagePurpose as U, type AskToolInput as V, DEFAULT_INTAKE_PREAMBLE as W, DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS as X, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS as Y, ELICITATION_INPUT_TYPES as Z, type ElicitationInput as _, type ToolHandler as a, type ElicitationOption as a0, type ElicitationOutcome as a1, type ElicitationQuestion as a2, type ElicitationReply as a3, type ElicitationResult as a4, type HistoryPolicyContext as a5, type HistorySelection as a6, type HistorySummary as a7, type InvokeWithTransientRetryOptions as a8, MAX_ASK_QUESTIONS as a9, resolveElicitation as aA, resolveToolTransientRetryNumbers as aB, settleElicitation as aC, validateElicitationAnswer as aD, validateElicitationValue as aE, type MessageFeedbackValue as aa, type MessageRole as ab, type PromptContext as ac, type QuotaView as ad, type ToolCallApprovalStatus as ae, type ToolCatalogEntry as af, type ToolConfirmation as ag, type ToolDescription as ah, type ToolPresentationTone as ai, type ToolResultField as aj, type ToolResultView as ak, type ToolStepCtx as al, type ToolTransientRetryNumbers as am, type ToolTransientRetryOptions as an, askInputSchema as ao, askToolDefinition as ap, decodeStreamEvent as aq, encodeStreamEvent as ar, invokeWithTransientRetry as as, isTransientToolError as at, isTypedQuestion as au, normalizeElicitationReply as av, questionOptions as aw, readElicitationInput as ax, readElicitationQuestions as ay, renderElicitationAnswers 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 };
|