1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![deny(missing_docs)]
3#![cfg_attr(
4 test,
5 allow(
6 clippy::expect_used,
7 clippy::indexing_slicing,
8 clippy::panic,
9 clippy::unwrap_used,
10 clippy::unreachable
11 )
12)]
13extern crate self as rig;
30
31pub mod core {
40 pub use rig_core::*;
41}
42
43pub mod agent;
44pub mod bus;
45pub mod completion;
46pub mod extractor;
47pub mod integrations;
49pub(crate) use rig_core::json_utils;
50pub mod prelude;
51pub mod run;
52pub mod streaming;
53pub(crate) mod sync;
54#[cfg(any(test, feature = "test-utils"))]
55#[cfg_attr(docsrs, doc(cfg(feature = "test-utils")))]
56pub mod test_utils;
57pub mod tool;
58
59pub use agent::TypedPromptResponse;
60pub use agent::{
61 Agent, AgentBuilder, AgentHook, AgentRun, AgentRunner, HookContext, ModelHandle, ModelRef,
62 ModelSelection, ModelSelectionAction,
63};
64
65#[cfg(feature = "derive")]
66#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
67pub use rig_derive::rig_tool;
68
69#[cfg(not(target_family = "wasm"))]
72const _: fn() = || {
73 fn assert_send_sync_static<T: Send + Sync + 'static>() {}
74 assert_send_sync_static::<Agent>();
75 assert_send_sync_static::<AgentRunner>();
76 assert_send_sync_static::<ModelHandle>();
77 assert_send_sync_static::<agent::MultiTurnStreamItem>();
78 assert_send_sync_static::<agent::RunEvents>();
79 assert_send_sync_static::<agent::PromptResponse>();
80 assert_send_sync_static::<tool::server::ToolServerHandle>();
81 assert_send_sync_static::<tool::ToolSet>();
82 assert_send_sync_static::<tool::ToolCatalog>();
83};