mod.rs 730 Bytes
Newer Older
1
2
3
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

4
pub mod config;
5
6
pub mod harmony;
pub mod json;
7
pub mod parsers;
8
pub mod pythonic;
9
10
11
12
pub mod response;
pub mod tools;

// Re-export main types and functions for convenience
13
pub use config::{JsonParserConfig, ToolCallConfig, ToolCallParserType};
14
15
pub use harmony::parse_tool_calls_harmony;
pub use json::try_tool_call_parse_json;
16
pub use parsers::{detect_and_parse_tool_call, try_tool_call_parse};
17
pub use pythonic::try_tool_call_parse_pythonic;
18
19
pub use response::{CalledFunction, ToolCallResponse, ToolCallType};
pub use tools::{try_tool_call_parse_aggregate, try_tool_call_parse_stream};