@qvac/llm-llamacpp 0.56.0 → 0.57.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/index.d.ts CHANGED
@@ -349,6 +349,12 @@ declare namespace LlmLlamacpp {
349
349
  * `"required"` or a function name without tools throws.
350
350
  */
351
351
  tool_choice?: "auto" | "none" | "required" | (string & {});
352
+ /**
353
+ * Whether one response may carry more than one tool call. `true` lets the
354
+ * template and the tool-call grammar accept several; unset or `false`
355
+ * keeps one. Ignored when the prompt carries no tools.
356
+ */
357
+ parallel_tool_calls?: boolean;
352
358
  /**
353
359
  * Per-request reasoning channel budget. `-1` keeps the model's reasoning
354
360
  * channel on; `0` disables it for this request; any positive integer caps
package/index.js CHANGED
@@ -97,6 +97,7 @@ const GENERATION_PARAM_KEYS = new Set([
97
97
  "grammar",
98
98
  "json_schema",
99
99
  "tool_choice",
100
+ "parallel_tool_calls",
100
101
  "reasoning_budget",
101
102
  "remove_thinking_from_context",
102
103
  ]);
@@ -145,6 +146,10 @@ function normalizeGenerationParams(generationParams) {
145
146
  (typeof sanitized.tool_choice !== "string" || sanitized.tool_choice.length === 0)) {
146
147
  throw new TypeError('generationParams.tool_choice must be "auto", "none", "required" or a declared function name');
147
148
  }
149
+ if (sanitized.parallel_tool_calls !== undefined &&
150
+ typeof sanitized.parallel_tool_calls !== "boolean") {
151
+ throw new TypeError("generationParams.parallel_tool_calls must be a boolean when provided");
152
+ }
148
153
  const hasGrammar = typeof sanitized.grammar === "string" && sanitized.grammar.length > 0;
149
154
  const hasJsonSchema = sanitized.json_schema !== undefined &&
150
155
  sanitized.json_schema !== null &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/llm-llamacpp",
3
- "version": "0.56.0",
3
+ "version": "0.57.0",
4
4
  "description": "llama addon for qvac",
5
5
  "addon": true,
6
6
  "scripts": {
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.56"
10
+ "version": "0.57"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.56"
10
+ "version": "0.57"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.56"
10
+ "version": "0.57"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.56"
10
+ "version": "0.57"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.56"
10
+ "version": "0.57"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [