mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-09-01 17:19:24 +00:00
Add CodeAct execution (Tier 1) using the Monty embedded Python interpreter, following the Recursive Language Model (RLM) pattern from arXiv:2512.24601. Key additions: - executor/scripting.rs: Monty integration with FunctionCall-based tool dispatch, catch_unwind panic safety, resource limits (30s, 64MB, 1M allocs) - LlmResponse::Code variant + ExecutionTier::Scripting - Context-as-variables (RLM 3.4): thread messages, goal, step_number, previous_results injected as Python variables — LLM context stays lean while code accesses data selectively - llm_query(prompt, context) (RLM 3.5): recursive subagent calls from within Python code — results stored as variables, not injected into parent's attention window (symbolic composition) - Compact output metadata between code steps instead of full stdout - MontyObject ↔ serde_json::Value bidirectional conversion - Updated architecture plan with RLM design principles 74 tests passing, zero clippy warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
15 lines
399 B
Rust
15 lines
399 B
Rust
//! Step execution.
|
|
//!
|
|
//! - [`ExecutionLoop`] — core loop replacing `run_agentic_loop()`
|
|
//! - [`structured`] — Tier 0 action execution (structured tool calls)
|
|
//! - [`context`] — context building for LLM calls
|
|
//! - [`intent`] — tool intent nudge detection
|
|
|
|
pub mod context;
|
|
pub mod intent;
|
|
pub mod loop_engine;
|
|
pub mod scripting;
|
|
pub mod structured;
|
|
|
|
pub use loop_engine::ExecutionLoop;
|