Fix varregion scene capture and legacy rendering
This commit is contained in:
@@ -45,7 +45,7 @@ async fn luna_describes_live_renderer_evidence() -> Result<(), Box<dyn Error>> {
|
||||
let response = agent
|
||||
.send(vec![
|
||||
ContentBlock::text(
|
||||
"Describe this rendered virtual-world scene. State whether it contains recognizable textured terrain and mesh scenery, and identify any obvious rendering corruption.",
|
||||
"Describe this rendered virtual-world scene. State whether it contains recognizable detailed textured terrain and mesh scenery, and identify any obvious rendering corruption. End with `QUALITY: PASS` only if the scene is clearly recognizable and has no substantial rendering corruption; otherwise end with `QUALITY: FAIL`.",
|
||||
),
|
||||
ContentBlock::image_url(image),
|
||||
])
|
||||
@@ -61,10 +61,17 @@ async fn luna_describes_live_renderer_evidence() -> Result<(), Box<dyn Error>> {
|
||||
if descriptions.is_empty() {
|
||||
return Err("Luna returned no snapshot description".into());
|
||||
}
|
||||
let passed = descriptions
|
||||
.iter()
|
||||
.any(|description| description.contains("QUALITY: PASS"));
|
||||
for description in descriptions {
|
||||
println!("LIVE_LLM_VISION={description}");
|
||||
}
|
||||
Ok(())
|
||||
if passed {
|
||||
Ok(())
|
||||
} else {
|
||||
Err("Luna rejected the rendered scene quality".into())
|
||||
}
|
||||
}
|
||||
|
||||
fn live_environment() -> Result<BTreeMap<String, String>, Box<dyn Error>> {
|
||||
|
||||
Reference in New Issue
Block a user