pub struct Agent {
pub id: Option<String>,
pub version: Option<String>,
pub model: Option<String>,
}Fields§
§id: Option<String>The agent’s stable identifier, such as claude-code or codex.
version: Option<String>§model: Option<String>provider/model, from JOUET_AI_MODEL.
Implementations§
Source§impl Agent
impl Agent
pub fn from_env() -> Self
Sourcepub fn tool(&self) -> Option<String>
pub fn tool(&self) -> Option<String>
The tool’s name as people write it: Claude Code, Codex, or the
identifier itself for agents without a known spelling.
Sourcepub fn default_trailers(&self) -> Vec<String>
pub fn default_trailers(&self) -> Vec<String>
The trailers added when none are configured: none outside an agent; inside one, the co-author line its vendor publishes (Claude Code only, so far) and the AI disclosure.
Trait Implementations§
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Forget for Agent
impl Freeze for Agent
impl Move for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more