composable_agents 3.7.2 → 3.7.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/TODO.md +1 -0
- data/lib/composable_agents/ai_agents/agent.rb +2 -0
- data/lib/composable_agents/cline/agent.rb +2 -0
- data/lib/composable_agents/logger/tagged.rb +4 -4
- data/lib/composable_agents/mixins/artifact_contract.rb +2 -0
- data/lib/composable_agents/mixins/resumable.rb +2 -0
- data/lib/composable_agents/mixins/retriable_cline.rb +2 -0
- data/lib/composable_agents/prompt_driven_agent.rb +2 -0
- data/lib/composable_agents/ruby_agent.rb +3 -1
- data/lib/composable_agents/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d6aad15f3dc67bdafbf24bc9c29d88f702e375db8a367f63a9384caad24ade5
|
|
4
|
+
data.tar.gz: 482e0a1ec8d78fac7380c27c7204a7685fc8d6d16cbd947af9504c0ab9c3f426
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '086d957913a56296cfc94ee01e9043eac182fd0c3eafc1c7339d9ee2cef6d35ce9ac469ccbed27334382f247386d7d39a805b2feff9fdbb293a7a89600da7589'
|
|
7
|
+
data.tar.gz: 5d1ba220238e8dc81df436e36f8a6007623cb59e2865c089e23fb4bcd979b01460b15a458630f00f737b77143d18e37bc836a18752d6f101619d304481b4aafb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [v3.7.3](https://github.com/Muriel-Salvan/composable_agents/compare/v3.7.2...v3.7.3) (2026-12-03 16:56:38)
|
|
2
|
+
|
|
3
|
+
## Global changes
|
|
4
|
+
### Patches
|
|
5
|
+
|
|
6
|
+
* [chore(lint): enable rubocop-yard and fix YARD documentation](https://github.com/Muriel-Salvan/composable_agents/commit/b068159166a774cddde63e75692a5420b13c597d)
|
|
7
|
+
|
|
8
|
+
## Changes for lint
|
|
9
|
+
### Patches
|
|
10
|
+
|
|
11
|
+
* [chore(lint): enable rubocop-yard and fix YARD documentation](https://github.com/Muriel-Salvan/composable_agents/commit/b068159166a774cddde63e75692a5420b13c597d)
|
|
12
|
+
|
|
1
13
|
# [v3.7.2](https://github.com/Muriel-Salvan/composable_agents/compare/v3.7.1...v3.7.2) (2026-11-12 15:34:25)
|
|
2
14
|
|
|
3
15
|
## Global changes
|
data/TODO.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
* Use https://github.com/perplexityai/SPACE to provide a Mixin that would run agents in isolation.
|
|
1
2
|
* Add a new Breakable/Interruptable mixin for Cline::Agent with proper methods or config to define conditions to interrupt a run (could be based on timeouts, costs, tokens, infinite loops...).
|
|
2
3
|
* Use a ContextSummarizer agent to shrink the context given in retries.
|
|
3
4
|
* Add a new mixin for Cline::Agent with proper methods or config to define retries in case of errors, with exponential waits.
|
|
@@ -24,9 +24,11 @@ module ComposableAgents
|
|
|
24
24
|
|
|
25
25
|
# Initialize a new agent with a list of ai-agents' Agents to be used with an AgentRunner
|
|
26
26
|
#
|
|
27
|
+
# @param [Array<Object>] args
|
|
27
28
|
# @param model [String] Model to be used
|
|
28
29
|
# @param params [Hash{Symbol => Object}] Additional parameters to give to the ai-agents' agent
|
|
29
30
|
# @param handoff_agents [Array<Agents::Agent>] The list of additional agents that can be used for handoffs.
|
|
31
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
30
32
|
def initialize(
|
|
31
33
|
*args,
|
|
32
34
|
model: Agents.configuration.default_model,
|
|
@@ -21,6 +21,7 @@ module ComposableAgents
|
|
|
21
21
|
|
|
22
22
|
# Initialize a new agent that uses the Cline CLI in a dedicated config
|
|
23
23
|
#
|
|
24
|
+
# @param [Array<Object>] args
|
|
24
25
|
# @param strategy [Module] The prompt rendering strategy
|
|
25
26
|
# @param provider [String] Provider to be used
|
|
26
27
|
# @param model [String] Model to be used
|
|
@@ -31,6 +32,7 @@ module ComposableAgents
|
|
|
31
32
|
# * Param global_settings [Cline::GlobalSettings] Settings that can be tuned for this agent
|
|
32
33
|
# @param skills [Array<String>] List of skills to allow for this agent
|
|
33
34
|
# @param cli_options [Hash{Symbol => Object}] Task options to give to Cline CLI (see Cline::Cli.COMMANDS)
|
|
35
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
34
36
|
def initialize(
|
|
35
37
|
*args,
|
|
36
38
|
strategy: PromptRenderingStrategy::MarkdownHeavy,
|
|
@@ -35,7 +35,7 @@ module ComposableAgents
|
|
|
35
35
|
# This is the implementation used by all severity methods, that all call #add in ::Logger.
|
|
36
36
|
#
|
|
37
37
|
# @param severity [Integer, nil] Severity of the message
|
|
38
|
-
# @param message [String, #call
|
|
38
|
+
# @param message [String, #call, nil] Message string, Proc returning the message for lazy evaluation,
|
|
39
39
|
# or nil if the message is given by the progname or a block
|
|
40
40
|
# @param progname [String, nil] Program name to be logged if the message is nil
|
|
41
41
|
# @yield The optional code returning the message to log
|
|
@@ -50,7 +50,7 @@ module ComposableAgents
|
|
|
50
50
|
# without redefining it here, #log would not use this class' #add override.
|
|
51
51
|
#
|
|
52
52
|
# @param severity [Integer, nil] Severity of the message
|
|
53
|
-
# @param message [String, #call
|
|
53
|
+
# @param message [String, #call, nil] Message string, Proc returning the message for lazy evaluation,
|
|
54
54
|
# or nil if the message is given by the progname or a block
|
|
55
55
|
# @param progname [String, nil] Program name to be logged if the message is nil
|
|
56
56
|
# @yield The optional code returning the message to log
|
|
@@ -67,7 +67,7 @@ module ComposableAgents
|
|
|
67
67
|
# by passing a block to the wrapped logger's severity method.
|
|
68
68
|
#
|
|
69
69
|
# @param severity [Integer, nil] Severity of the message
|
|
70
|
-
# @param message [String, #call
|
|
70
|
+
# @param message [String, #call, nil] Message string, Proc returning the message for lazy evaluation,
|
|
71
71
|
# or nil if the message is given by the progname or a block
|
|
72
72
|
# @param progname [String, nil] Program name to be logged if the message is nil
|
|
73
73
|
# @yield The optional code returning the message to log
|
|
@@ -90,7 +90,7 @@ module ComposableAgents
|
|
|
90
90
|
# Resolve the message to be logged.
|
|
91
91
|
# The block has priority over the message and progname parameters, and Procs are called to get their result.
|
|
92
92
|
#
|
|
93
|
-
# @param message [String, #call
|
|
93
|
+
# @param message [String, #call, nil] Message string or Proc returning the message
|
|
94
94
|
# @param progname [String, nil] Program name to be logged if the message is nil
|
|
95
95
|
# @yield The optional code returning the message to log
|
|
96
96
|
# @yieldreturn [String] The message to log
|
|
@@ -32,10 +32,12 @@ module ComposableAgents
|
|
|
32
32
|
|
|
33
33
|
# Constructor
|
|
34
34
|
#
|
|
35
|
+
# @param [Array<Object>] args
|
|
35
36
|
# @param input_artifacts_contracts [Hash{Symbol => Object}, nil] Hash of input artifact names and their contracts,
|
|
36
37
|
# or nil if provided through the input_artifacts_contracts method
|
|
37
38
|
# @param output_artifacts_contracts [Hash{Symbol => Object}, nil] Hash of output artifact names and their contracts,
|
|
38
39
|
# or nil if provided through the output_artifacts_contracts method
|
|
40
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
39
41
|
def initialize(
|
|
40
42
|
*args,
|
|
41
43
|
input_artifacts_contracts: nil,
|
|
@@ -65,7 +65,9 @@ module ComposableAgents
|
|
|
65
65
|
|
|
66
66
|
# Constructor
|
|
67
67
|
#
|
|
68
|
+
# @param [Array<Object>] args
|
|
68
69
|
# @param run_id [String, nil] ID identifying this run to reuse previously executed steps, or nil if there is no resumability needed
|
|
70
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
69
71
|
def initialize(*args, run_id: nil, **kwargs)
|
|
70
72
|
super(*args, **kwargs)
|
|
71
73
|
@run_id = run_id
|
|
@@ -12,11 +12,13 @@ module ComposableAgents
|
|
|
12
12
|
module RetriableCline
|
|
13
13
|
# Constructor
|
|
14
14
|
#
|
|
15
|
+
# @param [Array<Object>] args
|
|
15
16
|
# @param cline_errors_max_retries [Integer] Maximum number of retries for Cline errors
|
|
16
17
|
# @param cline_errors_retry_initial_delay_secs [Float] Initial delay in seconds before the first retry
|
|
17
18
|
# @param cline_errors_retry_backoff_factor [Float] Backoff multiplier for each subsequent retry
|
|
18
19
|
# @param cline_errors_retry_max_delay_secs [Float] Maximum delay in seconds between retries
|
|
19
20
|
# @param cline_errors_retry_jitter [Float] Amount of random jitter to add to the delay
|
|
21
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
20
22
|
def initialize(
|
|
21
23
|
*args,
|
|
22
24
|
cline_errors_max_retries: 3,
|
|
@@ -39,6 +39,7 @@ module ComposableAgents
|
|
|
39
39
|
# Initialize a new PromptDrivenAgent with the information needed for prompts and the selected prompt rendering strategy.
|
|
40
40
|
# If no name is provided, it will default to 'Executor'.
|
|
41
41
|
#
|
|
42
|
+
# @param [Array<Object>] args
|
|
42
43
|
# @param role [String, nil] Agent's role, or nil for the agent's default
|
|
43
44
|
# @param objective [String, nil] Agent's objective, or nil for the agent's default
|
|
44
45
|
# @param system_instructions [Object, nil] Original instructions for the agent, or nil if no system instructions are needed.
|
|
@@ -47,6 +48,7 @@ module ComposableAgents
|
|
|
47
48
|
# @param strategy [Module] The prompt rendering strategy.
|
|
48
49
|
# Strategies must not define their own constructor: a strategy that can be customized exposes public accessors
|
|
49
50
|
# to be set on the agent (see PromptRenderingStrategy::MarkdownHeavyFiles#artifacts_directory=).
|
|
51
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
50
52
|
def initialize(
|
|
51
53
|
*args,
|
|
52
54
|
role: nil,
|
|
@@ -8,10 +8,12 @@ module ComposableAgents
|
|
|
8
8
|
|
|
9
9
|
# Initialize a new RubyAgent with a processing proc
|
|
10
10
|
#
|
|
11
|
-
# @param processor [#call(Hash{Symbol => Object})
|
|
11
|
+
# @param processor [#call(Hash{Symbol => Object})] The agent logic.
|
|
12
12
|
# This proc will receive the input artifacts hash and must return a hash of output artifacts.
|
|
13
13
|
# - Param input_artifacts [Hash\\{Symbol => Object}] Input artifacts provided to the agent
|
|
14
14
|
# - Return [Hash\\{Symbol => Object}] Output artifacts produced by the agent
|
|
15
|
+
# @param [Array<Object>] args
|
|
16
|
+
# @param [Hash{Symbol => Object}] kwargs
|
|
15
17
|
def initialize(processor, *args, **kwargs)
|
|
16
18
|
super(*args, **kwargs)
|
|
17
19
|
@processor = processor
|