Crate perspt_agent

Crate perspt_agent 

Source
Expand description

perspt-agent: SRBN Orchestrator and Agent logic

Implements the Stabilized Recursive Barrier Network for multi-agent coding.

Re-exports§

pub use agent::ActuatorAgent;
pub use agent::Agent;
pub use agent::ArchitectAgent;
pub use agent::SpeculatorAgent;
pub use agent::VerifierAgent;
pub use context_retriever::ContextRetriever;
pub use context_retriever::SearchHit;
pub use ledger::MerkleCommit;
pub use ledger::MerkleLedger;
pub use lsp::DocumentSymbolInfo;
pub use lsp::LspClient;
pub use orchestrator::SRBNOrchestrator;
pub use test_runner::PythonTestRunner;
pub use test_runner::TestFailure;
pub use test_runner::TestResults;
pub use test_runner::TestRunner;
pub use tools::AgentTools;
pub use tools::ToolCall;
pub use tools::ToolDefinition;
pub use tools::ToolResult;

Modules§

agent
Agent Trait and Implementations
context_retriever
Context Retriever
ledger
DuckDB Merkle Ledger
lsp
Native LSP Client
orchestrator
SRBN Orchestrator
test_runner
Python Test Runner
tools
Agent Tooling
types
SRBN Types (Re-exported from perspt-core)

Structs§

AgentContext
Agent context containing workspace state
AgentMessage
Agent message in conversation history
BehavioralContract
Behavioral contract for a node
EnergyComponents
Energy components for Lyapunov calculation
PlannedContract
Contract specified in the plan
PlannedTask
A planned task from the Architect
PlannedTest
A test case in the plan
RetryPolicy
Retry policy configuration per PSP-4 specification
SRBNNode
SRBN Node - the fundamental unit of control
SessionRecord
Record for a session
StabilityMonitor
Stability monitor for tracking Lyapunov Energy
TaskPlan
Structured task plan from Architect Output as JSON for reliable parsing
TokenBudget
Token budget tracking for cost control
WeightedTest
Weighted test definition

Enums§

Criticality
Test criticality levels for weighted tests
ErrorType
Error type for determining retry limits per PSP-4
ModelTier
Model tier for different agent roles
NodeState
Node execution state (from PSP state machine)
TaskType
Task type classification for planning