Skip to content

Commit 63ffd4e

Browse files
authored
Update base.py
1 parent 61e80f3 commit 63ffd4e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python_agent_harness/tools/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def cancel_event(self) -> Any:
9191
class Tool(ABC):
9292
name: str = ""
9393
description: str = ""
94+
# True for tools that only read state (Read, Glob, Grep, Skill):
95+
# when EVERY call in a round is readonly, the runner dispatches
96+
# them concurrently via a thread pool instead of one-at-a-time,
97+
# since none can depend on another's side effects.
98+
is_readonly: bool = False
9499
# NB: Tool is an ABC, not a dataclass, so this is a plain class-level
95100
# default (never mutated in place — every concrete tool overrides it
96101
# with its own schema). It must be a real dict: a dataclasses.field()

0 commit comments

Comments
 (0)