Agent OS Config • Rust AI Agent SDK

AgentOSConfig: Agent OS configuration.

AgentOSConfig

Defined in the protocols module.

Rust AI Agent SDK

Agent OS configuration.

Diagram

Input Data

Agent: AgentOSConfig

Output Result

Fields

NameTypeDescription
urlStringAgent OS URL
api_keyOption<String>API key
agent_idOption<String>Agent ID
telemetryboolEnable telemetry
timeoutu32Connection timeout

Methods

new

rust
fn new(url: impl Into<String>) -> Self

Create a new config

Parameters:

NameType
urlimpl Into&lt;String&gt;

api_key

rust
fn api_key(mut self, key: impl Into<String>) -> Self

Set API key

Parameters:

NameType
keyimpl Into&lt;String&gt;

agent_id

rust
fn agent_id(mut self, id: impl Into<String>) -> Self

Set agent ID

Parameters:

NameType
idimpl Into&lt;String&gt;

no_telemetry

rust
fn no_telemetry(mut self) -> Self

Disable telemetry

Source

View on GitHub

praisonai/src/protocols/mod.rs at line 247


Related Documentation