pub struct ExternalFrameworkConfig {
pub name: String,
pub command: String,
pub args: Vec<String>,
pub working_dir: Option<PathBuf>,
pub env: Vec<(String, String)>,
}Expand description
Configuration for an external framework comparison target.
Describes how to invoke a competitor framework benchmark subprocess that emits metrics in the External Benchmark Protocol (EBP) JSON format.
§Example
use adk_bench::ExternalFrameworkConfig;
let config = ExternalFrameworkConfig {
name: "langgraph".to_string(),
command: "python".to_string(),
args: vec!["-m".to_string(), "bench_langgraph".to_string()],
working_dir: None,
env: vec![("PYTHONPATH".to_string(), "./src".to_string())],
};
assert_eq!(config.name, "langgraph");Fields§
§name: StringFramework name (e.g., “adk-python”, “langgraph”, “crewai”).
command: StringCommand to execute the framework benchmark.
args: Vec<String>Arguments passed to the command.
working_dir: Option<PathBuf>Working directory for execution.
env: Vec<(String, String)>Environment variables to set for the subprocess.
Trait Implementations§
Source§impl Clone for ExternalFrameworkConfig
impl Clone for ExternalFrameworkConfig
Source§fn clone(&self) -> ExternalFrameworkConfig
fn clone(&self) -> ExternalFrameworkConfig
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 ExternalFrameworkConfig
impl Debug for ExternalFrameworkConfig
Source§impl<'de> Deserialize<'de> for ExternalFrameworkConfig
impl<'de> Deserialize<'de> for ExternalFrameworkConfig
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
Auto Trait Implementations§
impl Freeze for ExternalFrameworkConfig
impl RefUnwindSafe for ExternalFrameworkConfig
impl Send for ExternalFrameworkConfig
impl Sync for ExternalFrameworkConfig
impl Unpin for ExternalFrameworkConfig
impl UnsafeUnpin for ExternalFrameworkConfig
impl UnwindSafe for ExternalFrameworkConfig
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