openagent/
lib.rs

1//! OpenAI API Agent Kit
2
3#![deny(clippy::all, missing_docs)]
4#![cfg_attr(not(test), deny(unused_crate_dependencies))]
5
6// pub mod agent;
7pub mod api;
8pub mod error;
9pub mod http;
10// pub mod mcp;
11// pub mod tool;
12pub mod r#type;
13
14pub mod prelude {
15	#![allow(missing_docs)]
16
17	pub use crate::{
18		api::{ApiEventHandler, batch::*, chat::*, embedding::*, file::*, response::*, r#type::*},
19		http::*,
20		r#type::*,
21	};
22}
23
24mod util;
25
26mod _prelude {
27	pub use std::{
28		borrow::Cow,
29		fmt::{Display, Formatter, Result as FmtResult},
30		future::Future,
31		marker::PhantomData,
32	};
33
34	pub use serde::{Deserialize, Deserializer, Serialize, Serializer, de::DeserializeOwned};
35	pub use serde_json::Value;
36
37	pub(crate) use crate::{api::r#type::*, error::*, http::*, r#type::*, util::*};
38
39	pub(crate) type Map = serde_json::Map<String, Value>;
40}