protocols • Rust AI Agent SDK

Protocol System Module

protocols

Rust AI Agent SDK

Protocol System Module

This module provides protocol definitions for agent implementations:

  • AgentProtocol – Minimal protocol for agent implementations
  • RunnableAgentProtocol – Extended protocol with run/start methods
  • AgentOSProtocol – Agent OS integration protocol

Example

ignore
use praisonai::protocols::AgentProtocol;

struct MockAgent {
name: String,
}

impl AgentProtocol for MockAgent {
fn name(&self) -> &str { &self.name }
fn chat(&self, prompt: &str) -> String { "Response".to_string() }
}

Import

rust
use praisonai::protocols::*;

Classes