Agent OS Config • Rust AI Agent SDK
AgentOSConfig: Agent OS configuration.
AgentOSConfig
Defined in the protocols module.
Rust AI Agent SDK
Agent OS configuration.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AgentOSConfig"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
url | String | Agent OS URL |
api_key | Option<String> | API key |
agent_id | Option<String> | Agent ID |
telemetry | bool | Enable telemetry |
timeout | u32 | Connection timeout |
Methods
new
fn new(url: impl Into<String>) -> SelfCreate a new config
Parameters:
| Name | Type |
|---|---|
url | impl Into<String> |
api_key
fn api_key(mut self, key: impl Into<String>) -> SelfSet API key
Parameters:
| Name | Type |
|---|---|
key | impl Into<String> |
agent_id
fn agent_id(mut self, id: impl Into<String>) -> SelfSet agent ID
Parameters:
| Name | Type |
|---|---|
id | impl Into<String> |
no_telemetry
fn no_telemetry(mut self) -> SelfDisable telemetry
Source
View on GitHubpraisonai/src/protocols/mod.rs at line 247