Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(schemas): add constant for inference agent chat RPC method\n\nIntroduce a public constant `INFERENCE_AGENT_CHAT` that holds the canonical wire method name for the inference agent chat endpoint. This allows host facades to reference the string by name rather than duplicating it, preventing silent drift between the registered controller and embedder dispatch strings if the method is renamed upstream.\n\nAuto-committed-on: dragonfly\n

Steven Enamakele8158438ca0c
diff --git a/src/openhuman/inference/schemas.rs b/src/openhuman/inference/schemas.rs
index acf6035063..a2ad8a2459 100644
--- a/src/openhuman/inference/schemas.rs
+++ b/src/openhuman/inference/schemas.rs
@@ -7,6 +7,15 @@ use crate::core::{ControllerSchema, FieldSchema, TypeSchema};
use crate::openhuman::config::rpc as config_rpc;
use crate::rpc::RpcOutcome;
+/// The canonical RPC method name for `inference.agent_chat`.
+///
+/// The controller's `namespace` + `function` combine into the wire method
+/// `openhuman.inference_agent_chat` ([`rpc_method_name`](crate::core::ControllerSchema)).
+/// Host facades (the embed library) reference this constant rather than
+/// spelling the string out, so a rename upstream cannot silently drift an
+/// embedder's dispatch string away from the registered controller.
+pub const INFERENCE_AGENT_CHAT: &str = "openhuman.inference_agent_chat";
+
#[derive(Debug, Deserialize)]
struct InferenceSummarizeParams {
text: String,