Skip to main content

codewhale_tools/
prepared.rs

1use serde_json::Value;
2
3use crate::{ApprovalRequirement, ResourceClaim};
4
5/// A side-effect-free, input-specific tool decision prepared for authority
6/// checks and scheduling.
7#[derive(Debug, Clone, PartialEq)]
8pub struct PreparedToolCall {
9    pub name: String,
10    pub input: Value,
11    pub description: String,
12    pub read_only: bool,
13    pub supports_parallel: bool,
14    pub starts_detached: bool,
15    pub approval: ApprovalRequirement,
16    pub resources: Vec<ResourceClaim>,
17}