|
|
@@ -683,14 +683,14 @@ class _PhaseTwoScriptedLLM:
|
|
|
self.worker_kinds.append(kind)
|
|
|
last = _last_tool_value(messages)
|
|
|
if kind == "decode-retrieval":
|
|
|
- if not isinstance(last, dict) or "artifact_ref" not in last:
|
|
|
+ if not isinstance(last, dict) or not last.get("submitted"):
|
|
|
return self._call(
|
|
|
"search_script_decode_case",
|
|
|
{"return_field": "主脉络", "keyword": "observable reversal", "top_k": 3},
|
|
|
)
|
|
|
return self._call("submit_attempt", {})
|
|
|
if kind == "direction":
|
|
|
- if not isinstance(last, dict) or "artifact_ref" not in last:
|
|
|
+ if not isinstance(last, dict) or "direction_handle" not in last:
|
|
|
role_context = cast(Mapping[str, Any], prompt["role_context"])
|
|
|
accepted = cast(Sequence[Mapping[str, Any]], role_context["accepted_inputs"])
|
|
|
return self._call(
|