Configures process capacity and execution limits for native subagents.
# Source: https://github.com/bytedance/deer-flow | License: MIT | Copyright 2025 Bytedance Ltd. and/or its affiliates
# Provided via justclaw.it.com; keep this notice with the code.
"""Startup-only process capacity for native subagent execution."""
from typing import Literal
from pydantic import BaseModel, Field
class SubagentRuntimeConfig(BaseModel):
"""Process-local admission and execution limits shared by all subagents."""
max_running: int = Field(
default=3,
ge=1,
le=64,
description="Maximum native subagents that may execute concurrently in one Gateway process.",
)
max_queued: int = Field(
default=64,
ge=0,
le=10_000,
description="Maximum native subagents waiting for a process execution slot.",
)
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key