Output Config • Rust AI Agent SDK
OutputConfig: Output configuration
OutputConfig
Defined in the config module.
Rust AI Agent SDK
Output configuration
Fields
| Name | Type | Description |
|---|---|---|
mode | "silent" | – |
mode | String | Output mode: “silent”, “verbose”, “json” |
file | Option<String> | Output file path (optional) |
Methods
new
fn new() -> SelfCreate a new output config
silent
fn silent(mut self) -> SelfSet silent mode
verbose
fn verbose(mut self) -> SelfSet verbose mode
file
fn file(mut self, path: impl Into<String>) -> SelfSet output file
Parameters:
| Name | Type |
|---|---|
path | impl Into<String> |
Source
View on GitHubpraisonai/src/config.rs at line 114