ai_lib/types/
mod.rs

1// This is the start of the mod.rs file
2// It includes various modules for the AI library
3
4pub mod common;
5pub mod error;
6pub mod request;
7pub mod response;
8
9pub use request::ChatCompletionRequest;
10pub use response::ChatCompletionResponse;
11pub mod function_call;
12pub use common::{Choice, Message, Role};
13/// Usage and UsageStatus are response-level metadata; prefer importing from
14/// `ai_lib::types::response::{Usage, UsageStatus}` or the crate root re-exports.
15pub use response::{Usage, UsageStatus};
16pub use error::AiLibError;
17pub use function_call::{FunctionCall, FunctionCallPolicy, Tool};
18
19// Additional code may follow