Agent OS Protocol • Rust AI Agent SDK
AgentOSProtocol: Protocol for Agent OS integration.
AgentOSProtocol
Defined in the protocols module.
Rust AI Agent SDK
Protocol for Agent OS integration.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AgentOSProtocol"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffMethods
config
fn config(&self) -> &AgentOSConfigGet configuration
register
async fn register(&self) -> Result<String>Register agent with Agent OS
heartbeat
async fn heartbeat(&self) -> Result<()>Send heartbeat
report_metrics
async fn report_metrics(&self, metrics: AgentMetrics) -> Result<()>Report metrics
Parameters:
| Name | Type |
|---|---|
metrics | AgentMetrics |
get_config
async fn get_config(&self) -> Result<serde_json::Value>Get remote configuration
Source
View on GitHubpraisonai/src/protocols/mod.rs at line 0