Documentation
¶
Overview ¶
Package orchestrator implements the Task Orchestrator — Feature 4 of synapses-intelligence.
When two or more agents try to claim overlapping code scopes, the orchestrator uses the LLM to suggest an intelligent work distribution: it tells the new agent what alternative scope to focus on instead of conflicting with the existing agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator suggests work distribution when agents conflict.
func New ¶
func New(client llm.LLMClient, timeout time.Duration) *Orchestrator
New creates an Orchestrator.
func (*Orchestrator) Coordinate ¶
Coordinate suggests how to resolve conflicting work claims. If only a single conflict exists, the suggestion is specific and actionable. Results are NOT cached since agent states change rapidly.
type Response ¶
Response suggests how the new agent should proceed.
func DeterministicCoordinate ¶
DeterministicCoordinate returns a rule-based conflict resolution response without calling any LLM. Used by brain_impl.go when the orchestrate circuit is open — guarantees a non-empty, always-correct response even when all LLM tiers are unavailable. No external dependencies; cannot fail.