consciousness/src/agent
Kent Overstreet 933221f482 memory tools: generate public typed API via macro
The memory_tool! macro now generates two functions:
- jsonargs_*() - internal, takes JSON args for dispatch table
- pub fn name() - typed args, handles RPC-vs-local automatically

Callers can now use typed Rust API:
  memory::write(Some(&agent), "key", "content").await?;
  memory::query(None, "all | type:semantic", Some("full")).await?;

No more manual JSON construction for memory tool calls.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-13 13:12:11 -04:00
..
api simplify http library 2026-04-11 16:45:54 -04:00
tools memory tools: generate public typed API via macro 2026-04-13 13:12:11 -04:00
context.rs context: cache role header token lengths 2026-04-12 20:47:36 -04:00
mod.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
oneshot.rs delete rename agent and related code 2026-04-13 02:05:58 -04:00
tokenizer.rs WIP: Rename context_new → context, delete old files, fix UI layer 2026-04-08 15:20:26 -04:00