consciousness/src/agent/mod.rs
ProofOfConcept 10932cb67e hippocampus: move MemoryNode + store ops to where they belong
MemoryNode moved from agent/memory.rs to hippocampus/memory.rs — it's
a view over hippocampus data, not agent-specific.

Store operations (set_weight, set_link_strength, add_link) moved into
store/ops.rs. CLI code (cli/graph.rs, cli/node.rs) and agent tools
both call the same store methods now. render_node() delegates to
MemoryNode::from_store().render() — 3 lines instead of 40.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-03-25 01:55:21 -04:00

39 lines
1,022 B
Rust

#[macro_export]
macro_rules! dbglog {
($($arg:tt)*) => {{
use std::io::Write;
if let Ok(mut f) = std::fs::OpenOptions::new()
.create(true).append(true)
.open("/tmp/poc-debug.log")
{
let _ = writeln!(f, $($arg)*);
}
}};
}
// agent/ — interactive agent and shared infrastructure
//
// Merged from the former poc-agent crate. Contains:
// - api/ — LLM API backends (OpenAI-compatible, Anthropic)
// - types — Message, ToolDef, ChatRequest, etc.
// - tools/ — tool definitions and dispatch
// - ui_channel — streaming UI communication
// - runner — the interactive agent loop
// - cli, context, dmn, identity, log, observe, parsing, tui
// Config moved to crate::config (unified with memory config)
pub mod api;
pub mod types;
pub mod tools;
pub mod ui_channel;
pub mod journal;
pub mod runner;
pub mod cli;
pub mod context;
pub mod dmn;
pub mod identity;
pub mod log;
pub mod observe;
pub mod parsing;
pub mod tui;