consciousness/src/agent/api
ProofOfConcept 51e632c997 tools: delete ToolDef and FunctionDef
ToolDef and FunctionDef are gone. Tool definitions are static strings
on the Tool struct. The API layer builds JSON from Tool::to_json().

- ChatRequest.tools is now Option<serde_json::Value>
- start_stream takes &[Tool] instead of Option<&[ToolDef]>
- openai::stream_events takes &serde_json::Value for tools
- memory_and_journal_tools() returns Vec<Tool> for subconscious agents
- Subconscious agents filter by t.name instead of t.function.name

No more runtime JSON construction for tool definitions.
No more ToolDef::new(). No more FunctionDef.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-04 18:19:21 -04:00
..
mod.rs tools: delete ToolDef and FunctionDef 2026-04-04 18:19:21 -04:00
openai.rs tools: delete ToolDef and FunctionDef 2026-04-04 18:19:21 -04:00
types.rs tools: delete ToolDef and FunctionDef 2026-04-04 18:19:21 -04:00