返回 CodeWhale
prepared.rs
根目录 / crates / tools / src / prepared.rs
1 use serde_json::Value;
2
3 use 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)]
8 pub 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 }
18
18 lines RUST