mod.rs 630 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

pub mod json_parser;
pub mod parsers;
pub mod response;
pub mod tools;

// Re-export main types and functions for convenience
pub use json_parser::{
    try_tool_call_parse_json, CalledFunctionArguments, CalledFunctionParameters,
};
pub use parsers::{
    detect_and_parse_tool_call, JsonParserConfig, ToolCallConfig, ToolCallParserType,
};
pub use response::{CalledFunction, ToolCallResponse, ToolCallType};
pub use tools::{try_tool_call_parse_aggregate, try_tool_call_parse_stream};