Skip to main content

OutputConfig

Defined in the Configuration module.
Rust AI Agent SDK Output configuration

Fields

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

Methods

new

fn new() -> Self
Create a new output config

silent

fn silent(mut self) -> Self
Set silent mode

verbose

fn verbose(mut self) -> Self
Set verbose mode

json

fn json(mut self) -> Self
Set JSON output mode

file

fn file(mut self, path: impl Into<String>) -> Self
Set output file Parameters:
NameType
pathimpl Into&lt;String&gt;