pub enum ChatTarget {
Direct {
backend: DirectBackend,
model: ModelId,
effort: Option<String>,
},
Acp {
agent: AgentId,
config: Vec<ConfigSelection>,
},
LegacyClaudeAgent {
model: ModelId,
effort: Option<String>,
},
}Expand description
The execution target chosen for a Chat session (T-ILLEGAL-STATES).
Variants§
Direct
Direct HTTP API provider (Codex OAuth, OpenAI, Anthropic, Gemini, or custom HTTP).
Acp
Unified ACP agentic CLI backend (built-in preset, Registry-installed, or custom).
LegacyClaudeAgent
Retired claude-agent Chat target kept readable for historical sessions; cannot run new turns.
Implementations§
Source§impl ChatTarget
impl ChatTarget
pub fn direct(selection: DirectSelection) -> Self
pub fn acp(agent: AgentId, config: Vec<ConfigSelection>) -> Self
pub fn is_legacy_claude_agent(&self) -> bool
pub fn acp_agent(&self) -> Option<&AgentId>
pub fn engine_label(&self) -> String
Trait Implementations§
Source§impl Clone for ChatTarget
impl Clone for ChatTarget
Source§impl Debug for ChatTarget
impl Debug for ChatTarget
Source§impl<'de> Deserialize<'de> for ChatTarget
impl<'de> Deserialize<'de> for ChatTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChatTarget
Source§impl PartialEq for ChatTarget
impl PartialEq for ChatTarget
Source§impl Serialize for ChatTarget
impl Serialize for ChatTarget
impl StructuralPartialEq for ChatTarget
Auto Trait Implementations§
impl Forget for ChatTarget
impl Freeze for ChatTarget
impl Move for ChatTarget
impl RefUnwindSafe for ChatTarget
impl Send for ChatTarget
impl Sync for ChatTarget
impl Unpin for ChatTarget
impl UnsafeUnpin for ChatTarget
impl UnwindSafe for ChatTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.