* Constructs a new SubAgentScope instance. * @param name - The name for the subagent, used for logging and identification. * @param runtimeContext - The shared runtime configuration and services. * @param promptConfig - Configuration for the subagent's prompt and behavior. * @param model
(
readonly name: string,
readonly runtimeContext: Config,
private readonly promptConfig: PromptConfig,
private readonly modelConfig: ModelConfig,
private readonly runConfig: RunConfig,
private readonly toolConfig?: ToolConfig,
private readonly outputConfig?: OutputConfig,
)
| 249 | * @param outputConfig - Optional configuration for the subagent's expected outputs. |
| 250 | */ |
| 251 | private constructor( |
| 252 | readonly name: string, |
| 253 | readonly runtimeContext: Config, |
| 254 | private readonly promptConfig: PromptConfig, |
| 255 | private readonly modelConfig: ModelConfig, |
| 256 | private readonly runConfig: RunConfig, |
| 257 | private readonly toolConfig?: ToolConfig, |
| 258 | private readonly outputConfig?: OutputConfig, |
| 259 | ) { |
| 260 | const randomPart = Math.random().toString(36).slice(2, 8); |
| 261 | this.subagentId = `${this.name}-${randomPart}`; |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Creates and validates a new SubAgentScope instance. |
nothing calls this directly
no outgoing calls
no test coverage detected