Expand description
Read-only tool allowlist for parallel dispatch.
When a provider emits multiple tool calls in a single assistant turn (e.g. OpenAI parallel_tool_calls, Claude parallel tools), independent read-only calls can be executed concurrently instead of sequentially. This module maintains the hardcoded allowlist of tool IDs known to be side-effect-free.
§Examples
use codetether_agent::tool::readonly::is_read_only;
assert!(is_read_only("read"));
assert!(is_read_only("grep"));
assert!(!is_read_only("bash"));
assert!(!is_read_only("write"));Functions§
- is_
read_ only - Returns
trueiftool_ididentifies a known read-only tool that is safe to dispatch concurrently with other read-only tool calls.