mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-25 07:12:20 +01:00
fix(agent): infer outputs from empty runner contract
This commit is contained in:
@@ -1436,7 +1436,8 @@ def runtime_required_artifacts(user_text, client_runtime_context):
|
|||||||
path = str(value or '').strip().rstrip('/')
|
path = str(value or '').strip().rstrip('/')
|
||||||
if path and path not in paths:
|
if path and path not in paths:
|
||||||
paths.append(path)
|
paths.append(path)
|
||||||
return tuple(paths)
|
if paths:
|
||||||
|
return tuple(paths)
|
||||||
paths = []
|
paths = []
|
||||||
for value in declared_workspace_artifacts(user_text):
|
for value in declared_workspace_artifacts(user_text):
|
||||||
path = str(value or '').strip().rstrip('/')
|
path = str(value or '').strip().rstrip('/')
|
||||||
|
|||||||
@@ -477,6 +477,13 @@ def test_prompt_output_path_is_tracked_without_its_source_path():
|
|||||||
) == ('/workspace/output.html',)
|
) == ('/workspace/output.html',)
|
||||||
|
|
||||||
|
|
||||||
|
def test_empty_runner_artifact_list_falls_back_to_prompt_output_path():
|
||||||
|
assert runtime_required_artifacts(
|
||||||
|
'Create an HTML report at /workspace/output.html from /workspace/input.csv.',
|
||||||
|
{'completion_requirements': {'required_artifacts': []}},
|
||||||
|
) == ('/workspace/output.html',)
|
||||||
|
|
||||||
|
|
||||||
def test_preferences_are_inputs_not_required_outputs_for_a_saved_digest():
|
def test_preferences_are_inputs_not_required_outputs_for_a_saved_digest():
|
||||||
from src.clean_agent_preview import declared_workspace_artifacts
|
from src.clean_agent_preview import declared_workspace_artifacts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user