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_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);
}