pub fn is_agent_environment() -> boolExpand description
Check if running under an AI coding agent.
This is the main entry point for simple detection checks.
§Returns
true if agent environment is detected, false otherwise.
§Example
use fastapi_output::detection::is_agent_environment;
if is_agent_environment() {
println!("Running in agent mode - using plain output");
} else {
println!("Running in human mode - using rich output");
}