71ab7eafde
Routes a new event_type "chat_as_soul" through dharma/recv. The Studio preassembles the system_prompt + transcript and dispatches per-speaker; the soul-binary just performs the LLM call as the requested speaker_slug. No engram_compile here — each soul has its own engram (88xx) and the Studio queries it before composing the prompt. Also: track the previously-untracked split source modules (chat, routes, memory, awareness, studio) and add build.sh so the binary can be rebuilt without the studio’s concat trick. elb resolves the import graph and emits one .c per .el; we link them together with cc. dist/soul-el now points at dist/neuron via symlink (matching the launchctl plist).
14 lines
657 B
Plaintext
14 lines
657 B
Plaintext
// auto-generated by elc --emit-header - do not edit
|
|
extern fn chat_default_model() -> String
|
|
extern fn engram_compile(intent: String) -> String
|
|
extern fn json_safe(s: String) -> String
|
|
extern fn build_system_prompt(ctx: String) -> String
|
|
extern fn hist_append(hist: String, role: String, content: String) -> String
|
|
extern fn hist_trim(hist: String) -> String
|
|
extern fn handle_chat(body: String) -> String
|
|
extern fn handle_see(body: String) -> String
|
|
extern fn studio_tools_json() -> String
|
|
extern fn handle_chat_agentic(body: String) -> String
|
|
extern fn handle_chat_as_soul(body: String) -> String
|
|
extern fn auto_persist(req: String, resp: String) -> Void
|