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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use ChatCompletionTool;
use async_trait;
use DynClone;
use Value;
use Error;
pub use ScopedGrepTool;
pub use ScopedReadFileTool;
// Export ToolDefinition alias so quorum_rs::tools::ToolDefinition works
pub type ToolDefinition = ChatCompletionTool;
/// A capability that can be described to and executed by an LLM agent.
///
/// This trait is the foundation for dynamic function calling. Each tool
/// provides its schema to the LLM and an execution method (`call`) that
/// the orchestrator can invoke with arguments provided by the LLM.
///
/// It also requires `DynClone` to allow `Box<dyn Tool>` objects to be cloned,
/// which is necessary for creating separate toolsets for the Proposer and
/// Evaluator agents from a single source of truth (e.g., the sandbox).
// Implement `Clone` for `Box<dyn Tool>` using the `dyn_clone` crate's macro.
clone_trait_object!;