pub mod credential_config;
pub mod credentials;
pub mod error;
#[cfg(any(test, feature = "mock"))]
pub mod mock;
pub mod nodes;
pub mod providers;
pub mod registry;
pub mod sse;
pub mod types;
#[cfg(feature = "typesafe")]
pub mod typesafe;
#[cfg(feature = "http")]
mod http;
#[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_described(nodes::descriptors::llm(), nodes::llm::factory);
registry.register_described(nodes::descriptors::question_classifier(), nodes::classifier::factory);
registry.register_described(nodes::descriptors::parameter_extractor(), nodes::extractor::factory);
registry.register_described(nodes::descriptors::agent(), nodes::agent::factory);
#[cfg(feature = "typesafe")]
registry.register_described(nodes::descriptors::system_one(), nodes::system_one::factory);
}