@compilr-dev/agents 0.3.6 → 0.3.7

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.
@@ -58,12 +58,12 @@ export class ClaudeProvider {
58
58
  const params = {
59
59
  model: options?.model ?? this.defaultModel,
60
60
  max_tokens: options?.maxTokens ?? this.defaultMaxTokens,
61
- system: shouldCache && systemPrompt
62
- ? this.wrapSystemPromptWithCache(systemPrompt)
63
- : systemPrompt,
61
+ system: shouldCache && systemPrompt ? this.wrapSystemPromptWithCache(systemPrompt) : systemPrompt,
64
62
  messages: anthropicMessages,
65
63
  tools: tools.length > 0
66
- ? (shouldCache ? this.addCacheControlToLastTool(tools) : tools)
64
+ ? shouldCache
65
+ ? this.addCacheControlToLastTool(tools)
66
+ : tools
67
67
  : undefined,
68
68
  temperature: options?.temperature,
69
69
  stop_sequences: options?.stopSequences,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/agents",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Lightweight multi-LLM agent library for building CLI AI assistants",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",