Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apodex/task_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ async def _run_native_workflow(self, task: str, profile: Any) -> None:
stopped_by,
answer_status=str(state.get("answer_status") or ""),
answer_source=str(state.get("final_answer_source") or ""),
no_tool_is_complete=True,
)
if complete:
self.r.final(
Expand Down
2 changes: 1 addition & 1 deletion workflows/stateful_react_agent/_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def render_system_prompt_notes(
# mid-token. Without the rescue that fragment IS the answer — which is how a run
# whose visible output was "The shell ate my `" scored zero.
_GRACEFUL_FINAL_STOP_REASONS = frozenset({
"max_turns", "context_limit_reached", "response_truncated",
"max_turns", "context_limit_reached", "response_truncated", "no_tool",
})

# Abnormal / infra terminations: the LLM endpoint exhausted retries
Expand Down
Loading