wait_python
Waits for a Python execution to finish, or returns its current status after a timeout. Delivers full output when the execution includes --full-output and has completed.
Instructions
等待一个 execution 结束,或在指定时限到达时返回其当前状态。
选择与等待
execution 的选择规则与 python_execution_status 相同。等待
到期只结束本次工具调用,不中断 Python cell。后续可再次调用本工具,
或用 read_python_output 查看已到达的输出。
完整输出交付
当所选 execution 的有效 # loommux: 控制注释含 --full-output 且
已达到终态时,本工具直接返回完整 combined 正文,不应用默认 300 行省略。
仍在运行的此类 execution 继续返回 running,而非不完整正文。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution | No | 要等待的正整数执行编号。省略时使用当前记录,随后 使用最近记录。 | |
| timeout_seconds | No | 本次调用最多等待的正数秒数;默认 30 秒。 |