SubAgentRay
Python template · sinapsis_sub_agents.templates.sub_agent_ray
Overview
Template to initialize sub agent instances as ray actors.
This allows executing the sub agent in distributed workflows.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-sub-agents==1.0.0uv pip install sinapsis-sub-agents==1.0.0uv add sinapsis-sub-agents==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Set the address of the Ray cluster to connect to. Defaults to None.
Optional
Default: null
Optional
Default: null
Set the number of CPUs assigned to sub agent instance. Defaults to 1.
Optional
Default: 1
Set the number of GPUs assigned to sub agent instance. Defaults to 1.
Optional
Default: 1
Optional
Default: false
Set a maximum time for a sub agent to finish its execution. If ready_timeout = 0.0, no timeout is set. Defaults to 0.0
Optional
Default: 0
Required
Default: null
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "SubAgentRay"
class_name: "SubAgentRay"
attributes:
address: null
num_cpus: 1
num_gpus: 1
lazy_agent: false
ready_timeout: 0
agent_definition: "<required>"
View original docstring example
The source example references HelloWorld, not SubAgentRay.
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: SubAgentRay
class_name: SubAgentRay
template_input: InputTemplate
attributes:
lazy_agent: false
ready_timeout: 0.0
num_cpus: 1
num_gpus: 1
agent_definition:
agent:
name: my_test_sub_agent_ray
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: HelloWorld
class_name: HelloWorld
template_input: InputTemplate
attributes:
display_text: Hello SinapsisInheritance
sinapsis_sub_agents.templates.sub_agent_base.SubAgentTemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.