tools_rs/prelude.rs
1//! Convenient re-exports for common usage patterns.
2//!
3//! This prelude module re-exports the most commonly used items from tools-rs,
4//! allowing users to import everything they typically need with a single use statement:
5//!
6//! ```rust
7//! use tools_rs::prelude::*;
8//! ```
9
10// Core functionality
11pub use crate::{
12 call_tool, call_tool_by_name, call_tool_with, call_tool_with_args, collect_tools,
13 function_declarations, list_tool_names,
14};
15
16// Essential types
17pub use crate::{
18 FunctionCall, FunctionDecl, FunctionResponse, ToolCollection, ToolError, ToolMetadata,
19 ToolSchema,
20};
21
22// Macros
23pub use crate::tool;
24
25// Commonly used external types
26pub use serde_json::{Value, json};
27
28// Re-export commonly needed traits for doc examples
29pub use serde::{Deserialize, Serialize};
30
31// Re-export async runtime for examples
32pub use tokio;