loopd: consult in the M5c registry, not core

Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
2026-10-03 21:43:39 -07:00
co-authored by ornith-1.5-35b-a3b
parent 50e9cc2037
commit 658bc7d1e8
5 changed files with 85 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
//! The `consult` tool: `brokerd` decides it and POSTs an allowlisted body (M6 spec, section 4).
//! It is not core; the parent finds it with `find_tool` and calls it through `call_tool`.
pub const CONSULT: &str = "consult";
pub fn schema() -> crate::llama::ToolSchema {
crate::llama::ToolSchema {
name: CONSULT.to_string(),
description: "Ask a remote model a question. The session history is not sent. Needs a grant from the owner.".to_string(),
parameters: serde_json::json!({
"type": "object",
"properties": {
"question": {
"type": "string",
"description": "The question to send. Nothing else of the session is included."
}
},
"required": ["question"]
}),
}
}