``Task`` adapter for ``local_agent`` entries. Polymorphic dispatch target for ``stop_task`` (Phase 5). The Chunk-C body delegates to ``kill_async_agent`` so the registry update + abort signal stay in one place.
| 389 | |
| 390 | |
| 391 | class LocalAgentTask: |
| 392 | """``Task`` adapter for ``local_agent`` entries. |
| 393 | |
| 394 | Polymorphic dispatch target for ``stop_task`` (Phase 5). The |
| 395 | Chunk-C body delegates to ``kill_async_agent`` so the registry |
| 396 | update + abort signal stay in one place. |
| 397 | """ |
| 398 | |
| 399 | name: str = "LocalAgentTask" |
| 400 | type: Literal["local_agent"] = "local_agent" |
| 401 | |
| 402 | async def kill( |
| 403 | self, task_id: str, registry: "RuntimeTaskRegistry" |
| 404 | ) -> None: |
| 405 | kill_async_agent(task_id, registry) |
| 406 | |
| 407 | |
| 408 | __all__ = [ |