Docs /Templates/ sinapsis-sub-agents

AsyncWhileLoop

sinapsis-sub-agentsSubAgents

Python template · sinapsis_sub_agents.templates.async_sub_agent

Overview

Async version of WhileLoop subagent. Runs a sub-agent until it has finished.

This will only happen during the first call to execute. Subsequent calls to execute will do nothing.

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis-sub-agents==1.0.0
uv pip install sinapsis-sub-agents==1.0.0
uv add sinapsis-sub-agents==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
lazy_agent
bool
Optional
Default: false
reuse_container
bool
Optional
Default: false
agent_definitionRequired
dict | sinapsis_core.agent.base_models.ProfilerAgentSchema | sinapsis_core.agent.base_models.AgentSchema | sinapsis_core.agent.base_models.MPIAgentSchema | str | pathlib._local.PosixPath
Required
Default: null

Configuration example

Generated from documented defaults. Replace any placeholders and complete required nested settings before running.

yaml
templates:
  - template_name: "AsyncWhileLoop"
    class_name: "AsyncWhileLoop"
    attributes:
      lazy_agent: false
      reuse_container: false
      agent_definition: "<required>"

Inheritance

Immediate parent: sinapsis_sub_agents.templates.async_sub_agent.AsyncSubAgentTemplate

Environment variables

Environment definitions belong to their canonical Python modules.

No directly related environment variables listed.