codewhale-tools 0.9.3

Tool invocation lifecycle, schema validation, and scheduler parallelism for Codewhale
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde_json::Value;

use crate::{ApprovalRequirement, ResourceClaim};

/// A side-effect-free, input-specific tool decision prepared for authority
/// checks and scheduling.
#[derive(Debug, Clone, PartialEq)]
pub struct PreparedToolCall {
    pub name: String,
    pub input: Value,
    pub description: String,
    pub read_only: bool,
    pub supports_parallel: bool,
    pub starts_detached: bool,
    pub approval: ApprovalRequirement,
    pub resources: Vec<ResourceClaim>,
}