pub struct PythonAdapter { /* private fields */ }Expand description
A HarnessAdapter that delegates each trial to the Python worker.
Thin wrapper over PythonWorker for the trial path (kind llm.run_trial).
Implementations§
Source§impl PythonAdapter
impl PythonAdapter
pub fn new() -> PythonAdapter
Trait Implementations§
Source§impl Default for PythonAdapter
impl Default for PythonAdapter
Source§fn default() -> PythonAdapter
fn default() -> PythonAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PythonAdapter
impl RefUnwindSafe for PythonAdapter
impl Send for PythonAdapter
impl Sync for PythonAdapter
impl Unpin for PythonAdapter
impl UnsafeUnpin for PythonAdapter
impl UnwindSafe for PythonAdapter
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