pub struct LegacyPromptVariableMapping {
pub mapping_type: String,
pub variable: String,
pub langfuse_object: LegacyEvaluationObject,
pub object_name: Option<String>,
pub source: String,
pub json_path: Option<Option<String>>,
}Expand description
LegacyPromptVariableMapping : Deprecated: Connects one prompt variable to data from a legacy trace or dataset evaluation rule. langfuseObject selects the object kind. objectName separately selects a named observation and is null for trace and dataset-item mappings.
Fields§
§mapping_type: StringExplicitly marks this as a legacy mapping.
variable: StringPrompt variable name without braces.
langfuse_object: LegacyEvaluationObject§object_name: Option<String>Observation name to match, or null when langfuseObject is trace or dataset_item.
source: StringField selected from the legacy object.
json_path: Option<Option<String>>Optional JSONPath selector applied to the selected field.
Implementations§
Source§impl LegacyPromptVariableMapping
impl LegacyPromptVariableMapping
Sourcepub fn builder() -> LegacyPromptVariableMappingBuilder
pub fn builder() -> LegacyPromptVariableMappingBuilder
Create an instance of LegacyPromptVariableMapping using the builder syntax
Source§impl LegacyPromptVariableMapping
impl LegacyPromptVariableMapping
Sourcepub fn new(
mapping_type: String,
variable: String,
langfuse_object: LegacyEvaluationObject,
object_name: Option<String>,
source: String,
) -> LegacyPromptVariableMapping
pub fn new( mapping_type: String, variable: String, langfuse_object: LegacyEvaluationObject, object_name: Option<String>, source: String, ) -> LegacyPromptVariableMapping
Deprecated: Connects one prompt variable to data from a legacy trace or dataset evaluation rule. langfuseObject selects the object kind. objectName separately selects a named observation and is null for trace and dataset-item mappings.