pub struct LaboratoryExecutionCreateParams {Show 13 fields
pub docker_image: String,
pub builder_agents: Vec<InlineAgentBaseWithFallbacksOrRemoteCommitOptional>,
pub evaluation_agent: Option<InlineAgentBaseWithFallbacksOrRemoteCommitOptional>,
pub builder_messages: Vec<Message>,
pub evaluation_messages: Option<Vec<Message>>,
pub evaluation_output_schema: Option<InputSchema>,
pub builder_continuation: Option<String>,
pub evaluation_continuation: Option<String>,
pub max_evaluation_retries: Option<u32>,
pub persist: Option<bool>,
pub provider: Option<Provider>,
pub seed: Option<i64>,
pub stream: Option<bool>,
}Expand description
Parameters for creating a laboratory execution.
Fields§
§docker_image: StringDocker image to use for builder containers.
builder_agents: Vec<InlineAgentBaseWithFallbacksOrRemoteCommitOptional>Builder agents — at least one required.
evaluation_agent: Option<InlineAgentBaseWithFallbacksOrRemoteCommitOptional>Evaluation agent for evaluating builder outputs. If not provided, no evaluation is performed.
builder_messages: Vec<Message>Messages for builder agents.
evaluation_messages: Option<Vec<Message>>Messages for the evaluation agent.
evaluation_output_schema: Option<InputSchema>Output schema for evaluation.
builder_continuation: Option<String>Continuation from a previous builder completion, as a base64-encoded string.
evaluation_continuation: Option<String>Continuation from a previous evaluation completion, as a base64-encoded string.
max_evaluation_retries: Option<u32>Maximum number of evaluation retries if validation fails. Defaults to 3 if not specified.
persist: Option<bool>Whether to keep containers after execution. Defaults to false.
provider: Option<Provider>§seed: Option<i64>§stream: Option<bool>Trait Implementations§
Source§impl Clone for LaboratoryExecutionCreateParams
impl Clone for LaboratoryExecutionCreateParams
Source§fn clone(&self) -> LaboratoryExecutionCreateParams
fn clone(&self) -> LaboratoryExecutionCreateParams
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<'de> Deserialize<'de> for LaboratoryExecutionCreateParams
impl<'de> Deserialize<'de> for LaboratoryExecutionCreateParams
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
Source§impl JsonSchema for LaboratoryExecutionCreateParams
impl JsonSchema for LaboratoryExecutionCreateParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LaboratoryExecutionCreateParams
impl RefUnwindSafe for LaboratoryExecutionCreateParams
impl Send for LaboratoryExecutionCreateParams
impl Sync for LaboratoryExecutionCreateParams
impl Unpin for LaboratoryExecutionCreateParams
impl UnsafeUnpin for LaboratoryExecutionCreateParams
impl UnwindSafe for LaboratoryExecutionCreateParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more