@dudousxd/nestjs-agent-core 0.23.0 → 0.24.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.
@@ -1072,6 +1072,12 @@ interface AgentRunInput {
1072
1072
  * "regenerate" button. `userText` is ignored when set.
1073
1073
  */
1074
1074
  regenerate?: boolean;
1075
+ /**
1076
+ * The model this turn runs on — a catalog id the service already checked (a per-send pick, else
1077
+ * the thread's pinned model). Handed to the provider as `ModelTurnArgs.model`, and the usage
1078
+ * label when the provider reports none. Omitted → the provider's default.
1079
+ */
1080
+ model?: string;
1075
1081
  }
1076
1082
  /**
1077
1083
  * A named agent: its prompt, the tools it may use, and who it can hand off to. This is the
@@ -1163,6 +1169,12 @@ interface ThreadSummary {
1163
1169
  * read-model normalizes this to `null` when absent, so a client can always do `?? null`.
1164
1170
  */
1165
1171
  activeRunId?: string | null;
1172
+ /**
1173
+ * The model pinned on this thread (`PATCH /threads/:id { model }`) — every turn without its own
1174
+ * `model` runs on it. `null` → the provider's default. Undefined for a store that does not persist
1175
+ * it; the REST read-model normalizes that to `null`.
1176
+ */
1177
+ model?: string | null;
1166
1178
  }
1167
1179
  interface StoredMessage {
1168
1180
  id: string;
@@ -1261,6 +1273,8 @@ interface LlmStepEnvelope {
1261
1273
  * interpose on, so the instruction has to ride the envelope. Absent → stream live, as before.
1262
1274
  */
1263
1275
  bufferOutput?: boolean;
1276
+ /** The turn's selected model ({@link AgentRunInput.model}), for the worker's provider call. */
1277
+ model?: string;
1264
1278
  }
1265
1279
  /**
1266
1280
  * The serializable subset of `AiToolCtx` — everything except `host` (re-attached handler-side
@@ -1072,6 +1072,12 @@ interface AgentRunInput {
1072
1072
  * "regenerate" button. `userText` is ignored when set.
1073
1073
  */
1074
1074
  regenerate?: boolean;
1075
+ /**
1076
+ * The model this turn runs on — a catalog id the service already checked (a per-send pick, else
1077
+ * the thread's pinned model). Handed to the provider as `ModelTurnArgs.model`, and the usage
1078
+ * label when the provider reports none. Omitted → the provider's default.
1079
+ */
1080
+ model?: string;
1075
1081
  }
1076
1082
  /**
1077
1083
  * A named agent: its prompt, the tools it may use, and who it can hand off to. This is the
@@ -1163,6 +1169,12 @@ interface ThreadSummary {
1163
1169
  * read-model normalizes this to `null` when absent, so a client can always do `?? null`.
1164
1170
  */
1165
1171
  activeRunId?: string | null;
1172
+ /**
1173
+ * The model pinned on this thread (`PATCH /threads/:id { model }`) — every turn without its own
1174
+ * `model` runs on it. `null` → the provider's default. Undefined for a store that does not persist
1175
+ * it; the REST read-model normalizes that to `null`.
1176
+ */
1177
+ model?: string | null;
1166
1178
  }
1167
1179
  interface StoredMessage {
1168
1180
  id: string;
@@ -1261,6 +1273,8 @@ interface LlmStepEnvelope {
1261
1273
  * interpose on, so the instruction has to ride the envelope. Absent → stream live, as before.
1262
1274
  */
1263
1275
  bufferOutput?: boolean;
1276
+ /** The turn's selected model ({@link AgentRunInput.model}), for the worker's provider call. */
1277
+ model?: string;
1264
1278
  }
1265
1279
  /**
1266
1280
  * The serializable subset of `AiToolCtx` — everything except `host` (re-attached handler-side
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-agent-core",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",