1pub mod credential_config;
27pub mod credentials;
28pub mod error;
29#[cfg(any(test, feature = "mock"))]
31pub mod mock;
32pub mod nodes;
33pub mod providers;
34pub mod registry;
35pub mod sse;
36pub mod types;
37#[cfg(feature = "typesafe")]
38pub mod typesafe;
39
40#[cfg(feature = "http")]
41mod http;
42
43#[cfg(feature = "anthropic")]
44pub mod anthropic;
45#[cfg(feature = "bedrock")]
46pub mod bedrock;
47#[cfg(feature = "gemini")]
48pub mod gemini;
49#[cfg(feature = "openai")]
50pub mod openai;
51
52pub use error::LlmError;
53pub use registry::ModelRegistry;
54pub use types::{
55 ChatDelta, ChatModel, ChatRequest, ChatResponse, ChatStream, ContentPart, FinishReason, InvalidToolArguments,
56 Message, ResponseFormat, Role, ToolCall, ToolChoice, collect,
57};
58
59pub fn register(registry: &mut graphrt_core::Registry) {
61 registry.register_described(nodes::descriptors::llm(), nodes::llm::factory);
62 registry.register_described(nodes::descriptors::question_classifier(), nodes::classifier::factory);
63 registry.register_described(nodes::descriptors::parameter_extractor(), nodes::extractor::factory);
64 registry.register_described(nodes::descriptors::agent(), nodes::agent::factory);
65 #[cfg(feature = "typesafe")]
66 registry.register_described(nodes::descriptors::system_one(), nodes::system_one::factory);
67}