1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Parameter parsing types for the agent tool.
//!
//! This module defines the deserializable input payload shared by agent
//! tool actions. It keeps tool input concerns separate from runtime
//! behavior such as spawning, messaging, or persistence.
//!
//! # Examples
//!
//! ```ignore
//! let params: Params = serde_json::from_value(payload)?;
//! assert_eq!(params.action, "spawn");
//! ```
use Deserialize;
/// Parsed input payload for the sub-agent management tool.
///
/// This structure is shared by all agent-tool actions so parsing happens once
/// before action-specific validation.
///
/// # Examples
///
/// ```ignore
/// let params: Params = serde_json::from_value(payload)?;
/// ```
pub