SubAgentTemplate
Python template · sinapsis_sub_agents.templates.sub_agent_base
Overview
This template enables the creation of complex agent workflows by treating agents as templates.
Allows building nested agent executions for robust and scalable applications.
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.
Optional
Default: null
Initializes sub_agent instance in lazy mode.
Optional
Default: false
Dictate the agent structure. It can be loaded from file or specified using a valid Agent schema.
Required
Default: null
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "SubAgentTemplate"
class_name: "SubAgentTemplate"
attributes:
lazy_agent: false
agent_definition: "<required>"
View original docstring example
The source example references HelloWorld, not SubAgentTemplate.
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: SubAgentTemplate
class_name: SubAgentTemplate
template_input: InputTemplate
attributes:
lazy_agent: false
agent_definition:
agent:
name: my_test_sub_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: HelloWorld
class_name: HelloWorld
template_input: InputTemplate
attributes:
display_text: "Hello Sinapsis"Inheritance
sinapsis_core.template_base.template.TemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.