@flink-app/test-utils 2.0.0-alpha.102 → 2.0.0-alpha.104

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @flink-app/test-utils
2
2
 
3
+ ## 2.0.0-alpha.104
4
+
5
+ ## 2.0.0-alpha.103
6
+
7
+ ### Patch Changes
8
+
9
+ - d614593: Only send `temperature` to the LLM when an agent explicitly configured one
10
+
11
+ Agents previously defaulted to `temperature: 0.7`, so the parameter was sent on every request. Models with adaptive thinking (Claude 5 and later) reject it with `temperature is deprecated for this model`, which made every agent call fail. Temperature is now optional throughout: `AgentRunner` leaves it unset unless the agent configured a value, and adapters omit it from the provider request when undefined. The Anthropic adapter additionally drops the parameter for models that do not accept it, logging a warning instead of failing the request.
12
+
13
+ Also fixes `temperature: 0` being silently replaced by `0.7` — the falsy `||` default has been removed, so a deterministic agent now actually runs at 0.
14
+
3
15
  ## 2.0.0-alpha.102
4
16
 
5
17
  ## 2.0.0-alpha.101
@@ -23,7 +23,8 @@ export interface MockLLMAdapterInvocation {
23
23
  messages: LLMMessage[];
24
24
  tools: any[];
25
25
  maxTokens: number;
26
- temperature: number;
26
+ /** Undefined unless the agent explicitly configured a temperature */
27
+ temperature?: number;
27
28
  }
28
29
  export interface MockLLMAdapter extends LLMAdapter {
29
30
  invocations: MockLLMAdapterInvocation[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/test-utils",
3
- "version": "2.0.0-alpha.102",
3
+ "version": "2.0.0-alpha.104",
4
4
  "description": "Test utils for Flink",
5
5
  "author": "joel@frost.se",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "jasmine-ts": "^0.3.3",
24
24
  "ts-node": "^10.9.2",
25
25
  "tsc-watch": "^4.2.9",
26
- "@flink-app/flink": "2.0.0-alpha.102"
26
+ "@flink-app/flink": "2.0.0-alpha.104"
27
27
  },
28
28
  "gitHead": "4243e3b3cd6d4e1ca001a61baa8436bf2bbe4113",
29
29
  "scripts": {
@@ -27,7 +27,8 @@ export interface MockLLMAdapterInvocation {
27
27
  messages: LLMMessage[];
28
28
  tools: any[];
29
29
  maxTokens: number;
30
- temperature: number;
30
+ /** Undefined unless the agent explicitly configured a temperature */
31
+ temperature?: number;
31
32
  }
32
33
 
33
34
  export interface MockLLMAdapter extends LLMAdapter {
@@ -96,7 +97,7 @@ export function mockLLMAdapter(config: MockLLMConfig = {}): MockLLMAdapter {
96
97
  messages: LLMMessage[];
97
98
  tools: any[];
98
99
  maxTokens: number;
99
- temperature: number;
100
+ temperature?: number;
100
101
  }): AsyncGenerator<LLMStreamChunk> {
101
102
  // Track invocation
102
103
  invocations.push({