pub struct InstallPythonPackages(/* private fields */);Expand description
install_python_packages: add packages to byob’s managed venv (created on first use)
with uv. Wheels only (--only-binary :all:), so installing never runs package code.
Trait Implementations§
Source§impl Tool for InstallPythonPackages
impl Tool for InstallPythonPackages
fn spec(&self) -> ToolSpec
Source§fn title(&self, args: &Value) -> String
fn title(&self, args: &Value) -> String
Short human title for the finished call, e.g. “Wrote notes.md”.
args is untrusted.Source§fn pending_title(&self, args: &Value) -> String
fn pending_title(&self, args: &Value) -> String
Title for the call before and while it runs, and on approval cards, e.g.
“Write notes.md”. Defaults to “Run ”.
Source§fn access(&self, _args: &Value) -> Access
fn access(&self, _args: &Value) -> Access
What this call would do; drives the permission gate. Must not have side effects.
Source§fn run(&self, args: &Value, ctx: &ToolContext<'_>) -> ToolOutput
fn run(&self, args: &Value, ctx: &ToolContext<'_>) -> ToolOutput
Do it.
args is untrusted model output: validate everything, never panic.Auto Trait Implementations§
impl !RefUnwindSafe for InstallPythonPackages
impl !UnwindSafe for InstallPythonPackages
impl Forget for InstallPythonPackages
impl Freeze for InstallPythonPackages
impl Send for InstallPythonPackages
impl Sync for InstallPythonPackages
impl Unpin for InstallPythonPackages
impl UnsafeUnpin for InstallPythonPackages
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