Expand description
Decider: Agent decision-making layer for ryo
This module provides the abstraction for agents to make decisions about what action to take next, based on context and world state.
§Architecture
┌─────────────────────────────────────────────────────────────┐
│ Agent Mode │
├─────────────────────────────────────────────────────────────┤
│ Plain Mode │ Just execute the given operation │
│ Agentic Mode │ Autonomous decision-making via Decider │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ Decider Implementations │
├─────────────────────────────────────────────────────────────┤
│ PlainDecider │ μs │ Pass-through (no decision) │
│ KeywordDecider │ μs │ Keyword matching │
│ ParameterizedDecider│ μs │ WorldState-based decisions │
│ MurmurationDecider │ μs │ Swarm-like collision avoid │
└─────────────────────────────────────────────────────────────┘§Usage
ⓘ
use ryo_executor::decider::{AgentMode, DeciderConfig, KeywordDecider};
// Plain mode - just execute operations
let config = DeciderConfig::plain();
// Agentic mode - autonomous decision-making
let config = DeciderConfig::agentic(Box::new(KeywordDecider::default()));Structs§
- Action
- An action that an agent can take
- Action
Result - Result of executing an action
- Agent
State - State of the agent’s world
- Composable
Decider - ComposableDecider: Combines a base decider with modifiers
- Decider
Config - Configuration for agent decision-making
- Decision
Context - Context for making a decision
- Error
Aware Modifier - ErrorAwareModifier: Prioritizes files with errors
- Error
Info - Error information
- File
State - State of a single file
- Murmuration
Decider - MurmurationDecider: Swarm behavior for parallel agents
- Parameterized
Decider - ParameterizedDecider: Makes decisions based on current state
- Plain
Decider - PlainDecider: Just returns the next work item as a read action
- Retry
Modifier - RetryModifier: Retries on failure with backoff
- Stall
Detection Modifier - StallDetectionModifier: Escalates when progress stalls
- Success
Rate Modifier - SuccessRateModifier: Escalates on low success rate
Enums§
- Action
Kind - The kind of action
- Agent
Mode - Agent execution mode
Traits§
- Decider
- Trait for decision-making strategies
- Decision
Modifier - Trait for modifying decisions based on conditions