You've already forked agentic-coding-workflow
18 lines
653 B
Go
18 lines
653 B
Go
package orchestrator
|
|
|
|
import "time"
|
|
|
|
// Config 是编排器模块的运行参数(从 config.OrchestratorConfig 派生)。
|
|
type Config struct {
|
|
// MaxAttemptsPerPhase 是单个阶段 step 在 dead-letter 前的最大尝试次数(run.config
|
|
// 覆盖优先)。
|
|
MaxAttemptsPerPhase int
|
|
// TurnTimeout 约束单个回合(SendPromptAndWait)的最长时长,须 < jobReaper
|
|
// LeaseTimeout,避免回合中途被 reaper 重抢租约导致重复驱动。
|
|
TurnTimeout time.Duration
|
|
// MaxDepth / FanOutLimit 是 request_subtask 的递归深度与并发子任务上限(run.config
|
|
// 覆盖优先)。
|
|
MaxDepth int
|
|
FanOutLimit int
|
|
}
|