| Crates.io | neural-conductor-shared |
| lib.rs | neural-conductor-shared |
| version | 0.1.0 |
| created_at | 2025-12-24 02:47:29.509524+00 |
| updated_at | 2025-12-24 02:47:29.509524+00 |
| description | Shared protocol and types for Neural Conductor - communication between server and agents |
| homepage | https://github.com/neural-garage/tools |
| repository | https://github.com/neural-garage/tools |
| max_upload_size | |
| id | 2002664 |
| size | 24,807 |
Shared protocol and types for Neural Conductor
neural-conductor-shared provides the communication protocol between the Neural Conductor server and remote agents. It defines:
Neural Conductor is a multi-agent orchestration platform with three components:
use neural_conductor_shared::AgentInfo;
let agent = AgentInfo {
id: "agent-001".to_string(),
hostname: "dev-machine".to_string(),
platform: "linux".to_string(),
version: "0.1.0".to_string(),
};
use neural_conductor_shared::protocol::{Request, Response};
use neural_conductor_shared::SessionId;
// Server sends request
let request = Request::ExecuteCommand {
session_id: SessionId::new(),
command: "cargo".to_string(),
args: vec!["build".to_string()],
workdir: Some("/path/to/project".to_string()),
};
// Agent responds
let response = Response::CommandResult {
session_id: session_id.clone(),
exit_code: 0,
stdout: "Finished build".to_string(),
stderr: String::new(),
};
use neural_conductor_shared::message::Message;
use neural_conductor_shared::protocol::Request;
let msg = Message::new(Request::Ping);
let json = msg.to_json()?;
// Send over network...
let received: Message<Request> = Message::from_json(&json)?;
🚧 Early Development - This crate defines the initial protocol. The API may change as we develop the conductor platform.
This crate is part of the Neural Garage suite.
Related crates:
Licensed under either of:
at your option.