mod.rs 620 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
pub mod harmony_parser;
6
7
pub mod json_parser;
pub mod parsers;
8
pub mod pythonic_parser;
9
10
11
12
pub mod response;
pub mod tools;

// Re-export main types and functions for convenience
13
14
pub use config::{JsonParserConfig, ToolCallConfig, ToolCallParserType};
pub use parsers::{detect_and_parse_tool_call, try_tool_call_parse};
15
16
pub use response::{CalledFunction, ToolCallResponse, ToolCallType};
pub use tools::{try_tool_call_parse_aggregate, try_tool_call_parse_stream};