pub struct RunSpec {
pub entrypoint: Option<String>,
pub command: Vec<String>,
pub python: Option<String>,
pub env: BTreeMap<String, String>,
}Expand description
How hlock runs a code harness (a framework agent or a custom script).
Fields§
§entrypoint: Option<String>Python module:callable, called as fn(prompt, ctx).
command: Vec<String>Any executable; {prompt}, {model} and {workspace} are substituted.
python: Option<String>Interpreter for entrypoint (default: HL_PYTHON, else python3).
env: BTreeMap<String, String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunSpec
impl<'de> Deserialize<'de> for RunSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RunSpec
impl Serialize for RunSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RunSpec
impl RefUnwindSafe for RunSpec
impl Send for RunSpec
impl Sync for RunSpec
impl Unpin for RunSpec
impl UnsafeUnpin for RunSpec
impl UnwindSafe for RunSpec
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