use Value;
use ToolError;
use crateToolDeclarations;
/// A static tool declarations implementation for testing.
///
/// Wraps a JSON value (expected to be an array of function declarations)
/// and returns it from `json()`. Use this when testing providers that
/// need tool declarations without setting up a full `ToolCollection`.
///
/// ```ignore
/// use serde_json::json;
/// use chat_core::testing::StaticToolDeclarations;
///
/// let tools = StaticToolDeclarations(json!([{
/// "name": "get_weather",
/// "description": "Get the current weather",
/// "parameters": {
/// "type": "object",
/// "properties": {
/// "location": { "type": "string" }
/// },
/// "required": ["location"]
/// }
/// }]));
/// ```
;