dynamo_protocols/lib.rs
1// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Based on https://github.com/64bit/async-openai/ by Himanshu Neema
5// Original Copyright (c) 2022 Himanshu Neema
6// Licensed under MIT License (see ATTRIBUTIONS-Rust.md)
7//
8// Modifications Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES.
9// Licensed under Apache 2.0
10
11//! Protocol type definitions for OpenAI-compatible inference APIs.
12//!
13//! This crate provides types for multiple inference API protocols:
14//! - **OpenAI Chat Completions & Completions** (via upstream `async-openai` re-exports + extensions)
15//! - **OpenAI Responses API** (via upstream `async-openai` re-exports)
16//! - **Anthropic Messages API** (fully custom)
17//!
18//! Inference-serving extensions (reasoning content, stop reasons, multimodal)
19//! are locally defined and documented.
20#![allow(deprecated)]
21#![allow(warnings)]
22#![cfg_attr(docsrs, feature(doc_cfg))]
23
24pub mod error;
25pub mod types;