pub struct AgentCapabilities {
pub session_resume: bool,
pub token_usage: bool,
pub mcp_support: bool,
pub autonomous_mode: bool,
pub structured_output: bool,
pub streaming: bool,
pub hooks: bool,
pub prompt_caching: bool,
pub extended_thinking: bool,
}Expand description
Capability flags for a provider implementation.
Fields§
§session_resume: boolCan resume/fork from an existing session.
token_usage: boolExposes token usage information.
mcp_support: boolSupports MCP tool integration.
autonomous_mode: boolCan run autonomously (bash, file ops).
structured_output: boolSupports structured output via JSON Schema.
streaming: boolSupports event-level streaming via query_stream().
hooks: boolSupports user-defined hooks (pre/post tool, on stop).
prompt_caching: boolSupports Anthropic-style prompt cache breakpoints.
extended_thinking: boolSupports extended-thinking budget.
Trait Implementations§
Source§impl Clone for AgentCapabilities
impl Clone for AgentCapabilities
Source§fn clone(&self) -> AgentCapabilities
fn clone(&self) -> AgentCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCapabilities
impl Debug for AgentCapabilities
Auto Trait Implementations§
impl Freeze for AgentCapabilities
impl RefUnwindSafe for AgentCapabilities
impl Send for AgentCapabilities
impl Sync for AgentCapabilities
impl Unpin for AgentCapabilities
impl UnsafeUnpin for AgentCapabilities
impl UnwindSafe for AgentCapabilities
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