pub struct BackendCapabilities {
pub isolation: ExecutionIsolation,
pub enforce_network_policy: bool,
pub enforce_filesystem_policy: bool,
pub enforce_environment_policy: bool,
pub enforce_timeout: bool,
pub supports_structured_output: bool,
pub supports_process_execution: bool,
pub supports_persistent_workspace: bool,
pub supports_interactive_sessions: bool,
}Expand description
Capabilities that a backend can actually enforce.
This makes the isolation model explicit so callers and docs can distinguish what a backend claims from what it can guarantee.
§Example
use adk_code::{BackendCapabilities, ExecutionIsolation};
let caps = BackendCapabilities {
isolation: ExecutionIsolation::ContainerEphemeral,
enforce_network_policy: true,
enforce_filesystem_policy: true,
enforce_environment_policy: true,
enforce_timeout: true,
supports_structured_output: true,
supports_process_execution: false,
supports_persistent_workspace: false,
supports_interactive_sessions: false,
};
assert!(caps.enforce_network_policy);Fields§
§isolation: ExecutionIsolationThe isolation class this backend provides.
enforce_network_policy: boolWhether the backend can enforce network restrictions.
enforce_filesystem_policy: boolWhether the backend can enforce filesystem restrictions.
enforce_environment_policy: boolWhether the backend can enforce environment variable restrictions.
enforce_timeout: boolWhether the backend can enforce execution timeouts.
supports_structured_output: boolWhether the backend supports structured JSON output.
supports_process_execution: boolWhether the backend supports spawning child processes.
supports_persistent_workspace: boolWhether the backend supports persistent workspaces across requests.
supports_interactive_sessions: boolWhether the backend supports interactive/REPL-style sessions.
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§fn clone(&self) -> BackendCapabilities
fn clone(&self) -> BackendCapabilities
Returns a duplicate of the value. Read more
1.0.0 · 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 BackendCapabilities
impl Debug for BackendCapabilities
Source§impl PartialEq for BackendCapabilities
impl PartialEq for BackendCapabilities
impl Eq for BackendCapabilities
impl StructuralPartialEq for BackendCapabilities
Auto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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