Docs.rs
ai_env-0.1.3
ai_env 0.1.3
Permalink
Docs.rs crate page
MIT
28 September 2026
Links
Homepage
Repository
crates.io
Source
Owners
milesj
Dependencies
serde ^1
normal
Versions
50%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate ai_env
ai_env
0.1.3
All Items
Crate Items
Structs
Enums
Functions
Crate
ai_env
Copy item path
Source
Structs
§
AiEnvironment
Enums
§
AiAgent
List of detectable AI coding agents.
AiNetwork
Policy
Network/egress policy imposed on the process, as reported by the environment.
Functions
§
detect_
agent
Detects the AI agent running the process. Returns
Unknown
when no known agent is matched.
detect_
network_
policy
Detects the network/egress policy imposed on the process, from environment variables only (no network I/O is performed). Pass the agent governing the process, typically from
detect_agent
.
get_
environment
Returns metadata about the current AI agent environment, or
None
when no agent is detected.
is_
ai_
agent
Returns true if the process is being run by an AI coding agent.