From 3e7c94699f78e92fe38fb2cef1051884583e0749 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Mon, 23 Mar 2026 15:17:45 -0700 Subject: [PATCH] Adjust prompt --- .../sample_validation/create_dynamic_workflow_executor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/scripts/sample_validation/create_dynamic_workflow_executor.py b/python/scripts/sample_validation/create_dynamic_workflow_executor.py index e914588953..9683c6d4b8 100644 --- a/python/scripts/sample_validation/create_dynamic_workflow_executor.py +++ b/python/scripts/sample_validation/create_dynamic_workflow_executor.py @@ -55,8 +55,11 @@ class BatchCompletion: AgentInstruction = ( "You are validating exactly one Python sample.\n" - "Analyze the sample code and execute it. Based on the execution result, determine if it " - "runs successfully, fails, or is missing setup. Feel free to install any required dependencies.\n" + "Analyze the sample code and execute it as it is. Based on the execution result, determine " + "if it runs successfully, fails, or is missing_setup. Use `missing_setup` if the sample reports " + "missing required environment variables. The environment you're given should contain the necessary " + "variables. Don't create new environment variables nor modify the sample code.\n" + "Feel free to install any required dependencies if needed.\n" "The sample can be interactive. If it is interactive, respond to the sample when prompted " "based on your analysis of the code. You do not need to consult human on what to respond.\n" "Return ONLY valid JSON with this schema:\n"