pub struct AgentCaps {
pub system_prompt: bool,
pub mcp: bool,
pub tool_policies: Vec<ToolPolicy>,
pub resume: bool,
pub stream: bool,
}Expand description
What an agent backend can do natively. Missing capabilities are emulated or the backend is skipped.
Fields§
§system_prompt: boolAccepts a separate system prompt (otherwise it is prepended to the prompt).
mcp: boolAccepts MCP servers per run.
tool_policies: Vec<ToolPolicy>Tool policies the backend can enforce. A run is never started with an unenforceable policy.
resume: boolCan resume a native session.
stream: boolCan stream partial output.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentCaps
impl<'de> Deserialize<'de> for AgentCaps
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 AgentCaps
impl StructuralPartialEq for AgentCaps
Auto Trait Implementations§
impl Freeze for AgentCaps
impl RefUnwindSafe for AgentCaps
impl Send for AgentCaps
impl Sync for AgentCaps
impl Unpin for AgentCaps
impl UnsafeUnpin for AgentCaps
impl UnwindSafe for AgentCaps
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