Remove dead AutoAgent.outputs field

Outputs now go directly to Subconscious.state via the tool closure.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-08 20:45:05 -04:00
parent e106b90a71
commit e6f4e9ae04

View file

@ -34,9 +34,6 @@ pub struct AutoAgent {
pub name: String, pub name: String,
pub tools: Vec<agent_tools::Tool>, pub tools: Vec<agent_tools::Tool>,
pub steps: Vec<AutoStep>, pub steps: Vec<AutoStep>,
/// Collected per-run, read by Mind after completion.
pub outputs: std::collections::BTreeMap<String, String>,
// Observable status
pub current_phase: String, pub current_phase: String,
pub turn: usize, pub turn: usize,
} }
@ -106,7 +103,6 @@ impl AutoAgent {
) -> Self { ) -> Self {
Self { Self {
name, tools, steps, name, tools, steps,
outputs: std::collections::BTreeMap::new(),
current_phase: String::new(), current_phase: String::new(),
turn: 0, turn: 0,
} }
@ -145,7 +141,6 @@ impl AutoAgent {
) -> Result<String, String> { ) -> Result<String, String> {
dbglog!("[auto] {} starting, {} steps", self.name, self.steps.len()); dbglog!("[auto] {} starting, {} steps", self.name, self.steps.len());
self.turn = 0; self.turn = 0;
self.outputs.clear();
self.current_phase = self.steps.first() self.current_phase = self.steps.first()
.map(|s| s.phase.clone()).unwrap_or_default(); .map(|s| s.phase.clone()).unwrap_or_default();
let mut next_step = 0; let mut next_step = 0;