pub enum Agent {
ClaudeCode,
Codex,
Gsd,
OpenCode,
}Variants§
ClaudeCode
Codex
Gsd
GSD (Get Shit Done) — runs on the pi coding-agent framework.
OpenCode
OpenCode. Named explicitly: clap’s default kebab-case derivation
would otherwise split the CamelCase word boundary into open-code,
not the single-word opencode the server/CLI convention expects.
Implementations§
Source§impl Agent
impl Agent
Sourcepub fn tool_name(&self) -> &'static str
pub fn tool_name(&self) -> &'static str
The tool value stamped on the stream request. The server selects its
per-agent adapter from this string.
Sourcepub fn protocol_version(&self) -> u8
pub fn protocol_version(&self) -> u8
Wire protocol version. Claude Code stays on v1 (behaviour-preserving);
Codex uses v2, where the server honours the explicit tool.
Trait Implementations§
impl Copy for Agent
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.