Output Config • Rust AI Agent SDK

OutputConfig: Output configuration

OutputConfig

Defined in the config module.

Rust AI Agent SDK

Output configuration

Fields

NameTypeDescription
mode"silent"–
modeStringOutput mode: “silent”, “verbose”, “json”
fileOption<String>Output file path (optional)

Methods

new

rust
fn new() -> Self

Create a new output config

silent

rust
fn silent(mut self) -> Self

Set silent mode

verbose

rust
fn verbose(mut self) -> Self

Set verbose mode

file

rust
fn file(mut self, path: impl Into<String>) -> Self

Set output file

Parameters:

NameType
pathimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/config.rs at line 114


Related Documentation