@dudousxd/nestjs-agent-core 0.29.0 → 0.30.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.
@@ -1,4 +1,4 @@
1
- import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-CON4ZOrD.js';
1
+ import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-CfnSyIQf.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-CON4ZOrD.cjs';
1
+ import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-CfnSyIQf.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}.
@@ -1165,6 +1177,11 @@ interface AgentCatalogEntry {
1165
1177
  description: string;
1166
1178
  /** Whether this is the agent a turn uses when the caller names none. Omitted when not the default. */
1167
1179
  isDefault?: boolean;
1180
+ /**
1181
+ * The catalog model this agent always runs on, when it is locked to one — an agent picker can say
1182
+ * so before a chat starts. `GET <base>/models?agent=` reports the same lock as `locked`.
1183
+ */
1184
+ lockedModel?: string;
1168
1185
  }
1169
1186
  interface ThreadSummary {
1170
1187
  id: string;
@@ -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}.
@@ -1165,6 +1177,11 @@ interface AgentCatalogEntry {
1165
1177
  description: string;
1166
1178
  /** Whether this is the agent a turn uses when the caller names none. Omitted when not the default. */
1167
1179
  isDefault?: boolean;
1180
+ /**
1181
+ * The catalog model this agent always runs on, when it is locked to one — an agent picker can say
1182
+ * so before a chat starts. `GET <base>/models?agent=` reports the same lock as `locked`.
1183
+ */
1184
+ lockedModel?: string;
1168
1185
  }
1169
1186
  interface ThreadSummary {
1170
1187
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-agent-core",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",