lib.rs 1023 Bytes
Newer Older
1
// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
7
// SPDX-License-Identifier: Apache-2.0
//
// Based on https://github.com/64bit/async-openai/ by Himanshu Neema
// Original Copyright (c) 2022 Himanshu Neema
// Licensed under MIT License (see ATTRIBUTIONS-Rust.md)
//
8
// Modifications Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES.
9
10
// Licensed under Apache 2.0

11
//! Protocol type definitions for OpenAI-compatible inference APIs.
12
//!
13
14
15
16
17
18
19
//! This crate provides types for multiple inference API protocols:
//! - **OpenAI Chat Completions & Completions** (via upstream `async-openai` re-exports + extensions)
//! - **OpenAI Responses API** (via upstream `async-openai` re-exports)
//! - **Anthropic Messages API** (fully custom)
//!
//! Inference-serving extensions (reasoning content, stop reasons, multimodal)
//! are locally defined and documented.
20
21
22
23
24
25
#![allow(deprecated)]
#![allow(warnings)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod error;
pub mod types;