(token: str)
| 405 | ) |
| 406 | |
| 407 | def _instance(token: str) -> Node: |
| 408 | if token in loop_instances: |
| 409 | return loop_instances[token] |
| 410 | if token in plan_for_member: |
| 411 | return loop_instances[plan_for_member[token].loop_id] |
| 412 | if token in root_instances: |
| 413 | return root_instances[token] |
| 414 | raise CompatibilityImportError(f"Unknown graph node token {token!r} while wiring ChatDev workflow.") |
| 415 | |
| 416 | root_member_ids = {n.id for n in root_node_exts} | {p.loop_id for p in loop_plans} |
| 417 | id_set = set(root_member_ids) |
no test coverage detected