pub enum Backend {
OpenAi,
Claude,
Opencode,
Codex,
Cursor,
}Expand description
Which mechanism the agent uses to produce each round’s edits.
Variants§
OpenAi
Built-in HTTP chat/completions tool loop (default).
Claude
Shell out to the claude CLI.
Opencode
Shell out to the opencode CLI (opencode run).
Codex
Shell out to the codex CLI (codex exec).
Cursor
Shell out to the cursor-agent CLI (cursor-agent --print).
Implementations§
Source§impl Backend
impl Backend
pub fn as_str(self) -> &'static str
Sourcepub fn is_subprocess(self) -> bool
pub fn is_subprocess(self) -> bool
True for the CLI-subprocess backends (everything except the built-in HTTP loop).
Sourcepub fn from_value(value: &str) -> Backend
pub fn from_value(value: &str) -> Backend
Map a backend field value to a backend: the keywords claude, codex,
opencode, and cursor-agent (also cursor) select that subprocess CLI;
anything else (a URL) is the built-in openai backend.
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.