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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! Pre-built tool providers for common coding agent patterns.
//!
//! Compose these with [`CompositeToolProvider`] to assemble a full tool suite.
//! Each sub-module builds a `StaticToolProvider` containing namespaced tools
//! for a specific domain.
//!
//! # Provider composition
//!
//! VFS, LSP, and DAP tool providers live in their respective crates
//! (`synwire-core::vfs`, `synwire-lsp`, `synwire-dap`) because they require
//! runtime dependencies (VFS instance, LSP client, DAP client). The
//! [`default_tool_provider`] assembles only the providers that need no external
//! runtime state; consumers add VFS/LSP/DAP providers at startup.
//!
//! ```rust,no_run
//! use synwire_agent::tools::{DefaultToolConfig, default_tool_provider};
//!
//! let provider = default_tool_provider(DefaultToolConfig::new().with_meta());
//! ```
use CompositeToolProvider;
/// Configuration for [`default_tool_provider`].
/// Assemble the default tool suite for a coding agent.
///
/// Includes `code.*` and `index.*` tool providers. Optionally includes
/// `meta.*` tools when [`DefaultToolConfig::include_meta`] is set.
///
/// VFS, LSP, and DAP providers are **not** included because they require
/// runtime dependencies. Add them via [`CompositeToolProvider`] at startup.
///
/// # Errors
///
/// Returns [`synwire_core::error::SynwireError`] if any tool fails validation.