pub enum PromptVariableMappingSource {
Input,
Output,
Metadata,
ToolCalls,
ExpectedOutput,
ExperimentItemMetadata,
}Expand description
PromptVariableMappingSource : Source field used to populate a prompt variable. Use these values when mapping evaluator prompt variables to live data. Source semantics: - input: the observation input payload - output: the observation output payload - metadata: the observation metadata object. Combine with jsonPath when you need one nested field instead of the whole object. - tool_calls: the tool calls recorded on the observation, as an array of {id, name, arguments, type, index} objects in the order the model emitted them. Combine with jsonPath (for example $[*].name) to select parts of each call. - expected_output: the experiment item’s expected output when the observation belongs to an experiment. - experiment_item_metadata: the experiment item’s metadata when the observation belongs to an experiment.
Source field used to populate a prompt variable. Use these values when mapping evaluator prompt variables to live data. Source semantics: - input: the observation input payload - output: the observation output payload - metadata: the observation metadata object. Combine with jsonPath when you need one nested field instead of the whole object. - tool_calls: the tool calls recorded on the observation, as an array of {id, name, arguments, type, index} objects in the order the model emitted them. Combine with jsonPath (for example $[*].name) to select parts of each call. - expected_output: the experiment item’s expected output when the observation belongs to an experiment. - experiment_item_metadata: the experiment item’s metadata when the observation belongs to an experiment.
Variants§
Trait Implementations§
Source§impl Clone for PromptVariableMappingSource
impl Clone for PromptVariableMappingSource
impl Copy for PromptVariableMappingSource
Source§impl Debug for PromptVariableMappingSource
impl Debug for PromptVariableMappingSource
Source§impl<'de> Deserialize<'de> for PromptVariableMappingSource
impl<'de> Deserialize<'de> for PromptVariableMappingSource
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>,
impl Eq for PromptVariableMappingSource
Source§impl Hash for PromptVariableMappingSource
impl Hash for PromptVariableMappingSource
Source§impl Ord for PromptVariableMappingSource
impl Ord for PromptVariableMappingSource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for PromptVariableMappingSource
impl PartialOrd for PromptVariableMappingSource
impl StructuralPartialEq for PromptVariableMappingSource
Source§impl TryFrom<&String> for PromptVariableMappingSource
impl TryFrom<&String> for PromptVariableMappingSource
Source§type Error = ParseEnumError
type Error = ParseEnumError
Source§impl TryFrom<&str> for PromptVariableMappingSource
impl TryFrom<&str> for PromptVariableMappingSource
Source§type Error = ParseEnumError
type Error = ParseEnumError
Source§impl TryFrom<String> for PromptVariableMappingSource
impl TryFrom<String> for PromptVariableMappingSource
Source§type Error = ParseEnumError
type Error = ParseEnumError
Source§impl Validate for PromptVariableMappingSource
impl Validate for PromptVariableMappingSource
Source§fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
errors, with its path below path, and nothing when the value
is valid. validate() calls it with Path::root; a model calls it on the models it holds with their path.