conductor_ruby 0.1.0 → 0.1.2
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 +32 -0
- data/examples/agents/01_basic_agent.rb +36 -0
- data/examples/agents/02a_simple_tools.rb +47 -0
- data/examples/agents/02c_tool_retry_config.rb +52 -0
- data/examples/agents/04_http_and_mcp_tools.rb +58 -0
- data/examples/agents/05_handoffs.rb +71 -0
- data/examples/agents/06_sequential_pipeline.rb +47 -0
- data/examples/agents/07_parallel_agents.rb +52 -0
- data/examples/agents/09_human_in_the_loop.rb +59 -0
- data/examples/agents/09c_hitl_streaming.rb +65 -0
- data/examples/agents/103_plan_and_compile.rb +85 -0
- data/examples/agents/10_guardrails.rb +61 -0
- data/examples/agents/13_hierarchical_agents.rb +79 -0
- data/examples/agents/16e_credentials_http_tool.rb +44 -0
- data/examples/agents/17_swarm_orchestration.rb +56 -0
- data/examples/agents/21_regex_guardrails.rb +69 -0
- data/examples/agents/22_llm_guardrails.rb +51 -0
- data/examples/agents/33_external_workers.rb +65 -0
- data/examples/agents/64_swarm_with_tools.rb +71 -0
- data/examples/agents/66_handoff_to_parallel.rb +62 -0
- data/examples/agents/bug_desk.rb +50 -0
- data/examples/agents/catalog.rb +32 -0
- data/examples/agents/dump_agent_configs.rb +30 -0
- data/examples/agents/external_workers.rb +39 -0
- data/examples/agents/golden_agents.rb +385 -0
- data/examples/agents/support_approval.rb +51 -0
- data/examples/agents/weather.rb +27 -0
- data/lib/conductor/agents/agent.rb +324 -0
- data/lib/conductor/agents/callback_handler.rb +64 -0
- data/lib/conductor/agents/config_serializer.rb +246 -0
- data/lib/conductor/agents/errors.rb +26 -0
- data/lib/conductor/agents/guardrail.rb +142 -0
- data/lib/conductor/agents/handoff.rb +94 -0
- data/lib/conductor/agents/memory.rb +75 -0
- data/lib/conductor/agents/plans.rb +22 -0
- data/lib/conductor/agents/prompt_template.rb +23 -0
- data/lib/conductor/agents/runtime/agent_config.rb +52 -0
- data/lib/conductor/agents/runtime/agent_runtime.rb +260 -0
- data/lib/conductor/agents/runtime/approval_request.rb +111 -0
- data/lib/conductor/agents/runtime/dispatch.rb +137 -0
- data/lib/conductor/agents/runtime/execution.rb +265 -0
- data/lib/conductor/agents/runtime/secrets.rb +54 -0
- data/lib/conductor/agents/runtime/sse_client.rb +175 -0
- data/lib/conductor/agents/runtime/status_poller.rb +49 -0
- data/lib/conductor/agents/runtime/system_workers.rb +115 -0
- data/lib/conductor/agents/runtime/tool_call.rb +13 -0
- data/lib/conductor/agents/runtime/tool_registry.rb +164 -0
- data/lib/conductor/agents/termination.rb +192 -0
- data/lib/conductor/agents/tool.rb +283 -0
- data/lib/conductor/agents/tools/schema_builder.rb +190 -0
- data/lib/conductor/agents/tools/secret_scanner.rb +45 -0
- data/lib/conductor/agents/tools.rb +173 -0
- data/lib/conductor/agents.rb +75 -0
- data/lib/conductor/client/agent_client.rb +117 -0
- data/lib/conductor/client/task_client.rb +7 -0
- data/lib/conductor/configuration.rb +43 -10
- data/lib/conductor/exceptions.rb +36 -0
- data/lib/conductor/http/api/agent_resource_api.rb +138 -0
- data/lib/conductor/http/api/scheduler_resource_api.rb +31 -12
- data/lib/conductor/http/api/task_resource_api.rb +15 -0
- data/lib/conductor/http/models/task.rb +10 -2
- data/lib/conductor/http/models/task_def.rb +14 -3
- data/lib/conductor/http/rest_client.rb +9 -0
- data/lib/conductor/orkes/orkes_clients.rb +5 -1
- data/lib/conductor/version.rb +1 -1
- data/lib/conductor/worker/lease_renewer.rb +55 -0
- data/lib/conductor/worker/ractor_task_runner.rb +1 -1
- data/lib/conductor/worker/task_definition_registrar.rb +2 -2
- data/lib/conductor/worker/task_runner.rb +43 -10
- data/lib/conductor/worker/worker.rb +3 -2
- data/lib/conductor/worker/worker_config.rb +2 -1
- data/lib/conductor/workflow/task_type.rb +1 -2
- data/lib/conductor.rb +3 -1
- metadata +91 -24
metadata
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conductor_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Conductor OSS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 2.14.3
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '3.0'
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
29
|
+
version: 2.14.3
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '3.0'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: faraday-net_http_persistent
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -56,16 +62,22 @@ dependencies:
|
|
|
56
62
|
name: concurrent-ruby
|
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
|
58
64
|
requirements:
|
|
59
|
-
- - "
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: 1.3.7
|
|
68
|
+
- - "<"
|
|
60
69
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
70
|
+
version: '2.0'
|
|
62
71
|
type: :runtime
|
|
63
72
|
prerelease: false
|
|
64
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
74
|
requirements:
|
|
66
|
-
- - "
|
|
75
|
+
- - ">="
|
|
67
76
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
77
|
+
version: 1.3.7
|
|
78
|
+
- - "<"
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '2.0'
|
|
69
81
|
- !ruby/object:Gem::Dependency
|
|
70
82
|
name: json
|
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,6 +92,20 @@ dependencies:
|
|
|
80
92
|
- - ">="
|
|
81
93
|
- !ruby/object:Gem::Version
|
|
82
94
|
version: '2.0'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: json_schemer
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - "~>"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '2.0'
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - "~>"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '2.0'
|
|
83
109
|
- !ruby/object:Gem::Dependency
|
|
84
110
|
name: pry
|
|
85
111
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -150,20 +176,6 @@ dependencies:
|
|
|
150
176
|
- - "~>"
|
|
151
177
|
- !ruby/object:Gem::Version
|
|
152
178
|
version: '2.0'
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: vcr
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - "~>"
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: '6.0'
|
|
160
|
-
type: :development
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - "~>"
|
|
165
|
-
- !ruby/object:Gem::Version
|
|
166
|
-
version: '6.0'
|
|
167
179
|
- !ruby/object:Gem::Dependency
|
|
168
180
|
name: webmock
|
|
169
181
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -190,6 +202,32 @@ files:
|
|
|
190
202
|
- LICENSE
|
|
191
203
|
- README.md
|
|
192
204
|
- examples/agentic_workflows/llm_chat.rb
|
|
205
|
+
- examples/agents/01_basic_agent.rb
|
|
206
|
+
- examples/agents/02a_simple_tools.rb
|
|
207
|
+
- examples/agents/02c_tool_retry_config.rb
|
|
208
|
+
- examples/agents/04_http_and_mcp_tools.rb
|
|
209
|
+
- examples/agents/05_handoffs.rb
|
|
210
|
+
- examples/agents/06_sequential_pipeline.rb
|
|
211
|
+
- examples/agents/07_parallel_agents.rb
|
|
212
|
+
- examples/agents/09_human_in_the_loop.rb
|
|
213
|
+
- examples/agents/09c_hitl_streaming.rb
|
|
214
|
+
- examples/agents/103_plan_and_compile.rb
|
|
215
|
+
- examples/agents/10_guardrails.rb
|
|
216
|
+
- examples/agents/13_hierarchical_agents.rb
|
|
217
|
+
- examples/agents/16e_credentials_http_tool.rb
|
|
218
|
+
- examples/agents/17_swarm_orchestration.rb
|
|
219
|
+
- examples/agents/21_regex_guardrails.rb
|
|
220
|
+
- examples/agents/22_llm_guardrails.rb
|
|
221
|
+
- examples/agents/33_external_workers.rb
|
|
222
|
+
- examples/agents/64_swarm_with_tools.rb
|
|
223
|
+
- examples/agents/66_handoff_to_parallel.rb
|
|
224
|
+
- examples/agents/bug_desk.rb
|
|
225
|
+
- examples/agents/catalog.rb
|
|
226
|
+
- examples/agents/dump_agent_configs.rb
|
|
227
|
+
- examples/agents/external_workers.rb
|
|
228
|
+
- examples/agents/golden_agents.rb
|
|
229
|
+
- examples/agents/support_approval.rb
|
|
230
|
+
- examples/agents/weather.rb
|
|
193
231
|
- examples/dynamic_workflow.rb
|
|
194
232
|
- examples/event_handler.rb
|
|
195
233
|
- examples/event_listener_examples.rb
|
|
@@ -213,6 +251,33 @@ files:
|
|
|
213
251
|
- examples/workflow_dsl.rb
|
|
214
252
|
- examples/workflow_ops.rb
|
|
215
253
|
- lib/conductor.rb
|
|
254
|
+
- lib/conductor/agents.rb
|
|
255
|
+
- lib/conductor/agents/agent.rb
|
|
256
|
+
- lib/conductor/agents/callback_handler.rb
|
|
257
|
+
- lib/conductor/agents/config_serializer.rb
|
|
258
|
+
- lib/conductor/agents/errors.rb
|
|
259
|
+
- lib/conductor/agents/guardrail.rb
|
|
260
|
+
- lib/conductor/agents/handoff.rb
|
|
261
|
+
- lib/conductor/agents/memory.rb
|
|
262
|
+
- lib/conductor/agents/plans.rb
|
|
263
|
+
- lib/conductor/agents/prompt_template.rb
|
|
264
|
+
- lib/conductor/agents/runtime/agent_config.rb
|
|
265
|
+
- lib/conductor/agents/runtime/agent_runtime.rb
|
|
266
|
+
- lib/conductor/agents/runtime/approval_request.rb
|
|
267
|
+
- lib/conductor/agents/runtime/dispatch.rb
|
|
268
|
+
- lib/conductor/agents/runtime/execution.rb
|
|
269
|
+
- lib/conductor/agents/runtime/secrets.rb
|
|
270
|
+
- lib/conductor/agents/runtime/sse_client.rb
|
|
271
|
+
- lib/conductor/agents/runtime/status_poller.rb
|
|
272
|
+
- lib/conductor/agents/runtime/system_workers.rb
|
|
273
|
+
- lib/conductor/agents/runtime/tool_call.rb
|
|
274
|
+
- lib/conductor/agents/runtime/tool_registry.rb
|
|
275
|
+
- lib/conductor/agents/termination.rb
|
|
276
|
+
- lib/conductor/agents/tool.rb
|
|
277
|
+
- lib/conductor/agents/tools.rb
|
|
278
|
+
- lib/conductor/agents/tools/schema_builder.rb
|
|
279
|
+
- lib/conductor/agents/tools/secret_scanner.rb
|
|
280
|
+
- lib/conductor/client/agent_client.rb
|
|
216
281
|
- lib/conductor/client/authorization_client.rb
|
|
217
282
|
- lib/conductor/client/integration_client.rb
|
|
218
283
|
- lib/conductor/client/metadata_client.rb
|
|
@@ -225,6 +290,7 @@ files:
|
|
|
225
290
|
- lib/conductor/configuration.rb
|
|
226
291
|
- lib/conductor/configuration/authentication_settings.rb
|
|
227
292
|
- lib/conductor/exceptions.rb
|
|
293
|
+
- lib/conductor/http/api/agent_resource_api.rb
|
|
228
294
|
- lib/conductor/http/api/application_resource_api.rb
|
|
229
295
|
- lib/conductor/http/api/authorization_resource_api.rb
|
|
230
296
|
- lib/conductor/http/api/event_resource_api.rb
|
|
@@ -302,6 +368,7 @@ files:
|
|
|
302
368
|
- lib/conductor/worker/events/task_runner_events.rb
|
|
303
369
|
- lib/conductor/worker/events/workflow_events.rb
|
|
304
370
|
- lib/conductor/worker/fiber_executor.rb
|
|
371
|
+
- lib/conductor/worker/lease_renewer.rb
|
|
305
372
|
- lib/conductor/worker/ractor_task_runner.rb
|
|
306
373
|
- lib/conductor/worker/task_context.rb
|
|
307
374
|
- lib/conductor/worker/task_definition_registrar.rb
|