#[cfg(feature = "context")]
#[doc(hidden)]
pub mod context;
pub mod credential_config;
pub mod credentials;
pub mod error;
pub mod failover;
#[cfg(feature = "memory")]
pub(crate) mod memory;
#[cfg(feature = "memory-graph")]
pub mod memory_graph;
#[cfg(any(test, feature = "mock"))]
pub mod mock;
pub mod nodes;
pub mod providers;
pub mod registry;
#[cfg(feature = "replay")]
pub mod replay;
pub mod sse;
#[cfg(feature = "subagents")]
pub(crate) mod subagents;
#[cfg(feature = "text-model")]
pub mod text_model;
pub mod types;
#[cfg(feature = "typesafe")]
pub mod typesafe;
#[cfg(any(feature = "memory", feature = "learning"))]
pub(crate) mod user_scope;
#[cfg(feature = "http")]
mod http;
#[cfg(feature = "http")]
pub use http::prewarm_http_client;
#[cfg(feature = "anthropic")]
pub mod anthropic;
#[cfg(feature = "bedrock")]
pub mod bedrock;
#[cfg(feature = "gemini")]
pub mod gemini;
#[cfg(feature = "openai")]
pub mod openai;
pub use error::LlmError;
pub use registry::ModelRegistry;
pub use types::{
ChatDelta, ChatModel, ChatRequest, ChatResponse, ChatStream, ContentPart, FinishReason, InvalidToolArguments,
Message, ResponseFormat, Role, ToolCall, ToolChoice, collect,
};
pub fn register(registry: &mut graphrt_core::Registry) {
registry.register_lazily_described("llm", nodes::descriptors::llm, nodes::llm::factory);
registry.register_lazily_described(
"question-classifier",
nodes::descriptors::question_classifier,
nodes::classifier::factory,
);
registry.register_lazily_described(
"parameter-extractor",
nodes::descriptors::parameter_extractor,
nodes::extractor::factory,
);
registry.register_lazily_described("agent", nodes::descriptors::agent, nodes::agent::factory);
#[cfg(feature = "typesafe")]
registry.register_lazily_described("system-one", nodes::descriptors::system_one, nodes::system_one::factory);
}