dynamo_parsers/tool_calling/
mod.rs

1// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4pub mod config;
5pub mod harmony;
6pub mod json;
7pub mod parsers;
8pub mod pythonic;
9pub mod response;
10#[cfg(test)]
11pub mod tests;
12pub mod tools;
13
14// Re-export main types and functions for convenience
15pub use config::{JsonParserConfig, ToolCallConfig, ToolCallParserType};
16pub use harmony::parse_tool_calls_harmony_complete;
17pub use json::try_tool_call_parse_json;
18pub use parsers::{
19    detect_and_parse_tool_call, detect_tool_call_start, find_tool_call_end_position,
20    try_tool_call_parse,
21};
22pub use pythonic::try_tool_call_parse_pythonic;
23pub use response::{CalledFunction, ToolCallResponse, ToolCallType};
24pub use tools::{try_tool_call_parse_aggregate, try_tool_call_parse_stream};