File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 python 82_coding_agent.py --resume # resume last session
1616
1717Requirements:
18- - Conductor server running at http://localhost:8080
18+ - Conductor server with WMQ support (conductor.workflow-message-queue.enabled=true)
1919 - CONDUCTOR_SERVER_URL=http://localhost:8080/api
2020 - CONDUCTOR_AGENT_LLM_MODEL=anthropic/claude-sonnet-5
2121"""
Original file line number Diff line number Diff line change 88
99How it works:
1010 The server compiles every agent's DoWhile loop with a ``_stop_requested``
11- workflow variable in its condition. When ``handle.stop()`` is called, the
12- SDK sets this variable to ``true`` via Conductor's ``updateVariables`` API .
11+ workflow variable in its condition. ``handle.stop()`` POSTs to
12+ ``/agent/{execution_id}/stop`` and the server sets that variable to ``true``.
1313 The loop condition evaluates to ``false`` on the next check, and the loop
1414 exits. The LLM cannot override this — it's checked by Conductor, not the
1515 LLM.
2828 The LLM could ignore this. handle.stop() makes this unnecessary.
2929
3030Requirements:
31- - Conductor server (with _stop_requested support in compiler)
31+ - Conductor server with WMQ support (conductor.workflow-message-queue.enabled=true)
32+ and _stop_requested support in the compiler
3233 - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
3334 - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
3435"""
You can’t perform that action at this time.
0 commit comments