pub struct CodeSkillsOptions {
pub dir: PathBuf,
pub runtime_path: PathBuf,
pub python: Option<PathBuf>,
pub test_timeout_ms: u64,
pub now: Clock,
pub base_env: Option<Vec<(String, String)>>,
}Fields§
§dir: PathBufWhere skills live (ULTRON_CODE_SKILLS_DIR, else <agentDir>/skills).
runtime_path: PathBufruntime.py for the test kernels.
python: Option<PathBuf>Interpreter for the test kernels; default as for every kernel.
test_timeout_ms: u64Wall budget of one test run (a session’s ULTRON_CODE_SKILL_TEST_TIMEOUT_MS, default 120 s).
now: Clock§base_env: Option<Vec<(String, String)>>The environment test kernels start from (KernelOptions::base_env): the session’s, so a skill’s test finds
its tools on the session’s PATH, never the server process’s. None: this process’s environment.
Implementations§
Source§impl CodeSkillsOptions
impl CodeSkillsOptions
Sourcepub fn new(dir: impl Into<PathBuf>, runtime_path: impl Into<PathBuf>) -> Self
pub fn new(dir: impl Into<PathBuf>, runtime_path: impl Into<PathBuf>) -> Self
Options with the default test budget and this process’s environment for test kernels.
Sourcepub fn for_session(
dir: impl Into<PathBuf>,
runtime_path: impl Into<PathBuf>,
base_env: Vec<(String, String)>,
) -> Self
pub fn for_session( dir: impl Into<PathBuf>, runtime_path: impl Into<PathBuf>, base_env: Vec<(String, String)>, ) -> Self
CodeSkillsOptions::new for a session: test kernels start from base_env, and the test budget is the
session’s ULTRON_CODE_SKILL_TEST_TIMEOUT_MS (from base_env, never this process’s environment).
Auto Trait Implementations§
impl !RefUnwindSafe for CodeSkillsOptions
impl !UnwindSafe for CodeSkillsOptions
impl Forget for CodeSkillsOptions
impl Freeze for CodeSkillsOptions
impl Move for CodeSkillsOptions
impl Send for CodeSkillsOptions
impl Sync for CodeSkillsOptions
impl Unpin for CodeSkillsOptions
impl UnsafeUnpin for CodeSkillsOptions
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