Skip to main content

cosh_tools/bash/
types.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3
4/// Parameters for `bash_run`.
5#[derive(Debug, Default, Deserialize, JsonSchema)]
6pub struct BashRunInput {
7    /// The bash command to execute. Must not be an absolute path
8    /// and must not match dangerous security patterns.
9    pub command: String,
10    /// Optional per-call timeout override in milliseconds. May only RAISE
11    /// the harness-configured timeout: it must be an integer strictly
12    /// greater than the default (interpolated into the tool description);
13    /// values equal to or below the default are rejected. It never
14    /// changes the configured default.
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub timeout_ms: Option<u64>,
17}