Add lib target to poc-agent, make poc-memory depend on it

Split poc-agent into lib + bin so its API client, types, and tool
dispatch can be imported by poc-memory. This is the foundation for
replacing claude CLI subprocess calls with direct API calls to
vllm/OpenAI-compatible endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kent Overstreet 2026-03-18 22:56:48 -04:00
parent 57fcfb472a
commit 55326a1c47
4 changed files with 20 additions and 4 deletions

View file

@ -4,6 +4,14 @@ version.workspace = true
edition = "2024"
description = "Substrate-independent AI agent framework"
[lib]
name = "poc_agent"
path = "src/lib.rs"
[[bin]]
name = "poc-agent"
path = "src/main.rs"
[dependencies]
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1", features = ["derive"] }

11
poc-agent/src/lib.rs Normal file
View file

@ -0,0 +1,11 @@
// poc-agent library — reusable components for LLM agent work
//
// The binary (main.rs) is the full interactive agent with TUI.
// This lib exposes the building blocks that other crates (poc-memory)
// can use for their own agent loops.
pub mod api;
pub mod journal;
pub mod types;
pub mod tools;
pub mod ui_channel;