1#[cfg(feature = "context")]
31#[doc(hidden)]
32pub mod context;
33pub mod credential_config;
34pub mod credentials;
35pub mod error;
36pub mod failover;
37#[cfg(feature = "memory")]
39pub(crate) mod memory;
40#[cfg(feature = "memory-graph")]
42pub mod memory_graph;
43#[cfg(any(test, feature = "mock"))]
45pub mod mock;
46pub mod nodes;
47pub mod providers;
48pub mod registry;
49#[cfg(feature = "replay")]
51pub mod replay;
52pub mod sse;
53#[cfg(feature = "subagents")]
55pub(crate) mod subagents;
56#[cfg(feature = "text-model")]
58pub mod text_model;
59pub mod types;
60#[cfg(feature = "typesafe")]
61pub mod typesafe;
62#[cfg(any(feature = "memory", feature = "learning"))]
63pub(crate) mod user_scope;
64
65#[cfg(feature = "http")]
66mod http;
67#[cfg(feature = "http")]
68pub use http::prewarm_http_client;
69
70#[cfg(feature = "anthropic")]
71pub mod anthropic;
72#[cfg(feature = "bedrock")]
73pub mod bedrock;
74#[cfg(feature = "gemini")]
75pub mod gemini;
76#[cfg(feature = "openai")]
77pub mod openai;
78
79pub use error::LlmError;
80pub use registry::ModelRegistry;
81pub use types::{
82 ChatDelta, ChatModel, ChatRequest, ChatResponse, ChatStream, ContentPart, FinishReason, InvalidToolArguments,
83 Message, ResponseFormat, Role, ToolCall, ToolChoice, collect,
84};
85
86pub fn register(registry: &mut graphrt_core::Registry) {
88 registry.register_lazily_described("llm", nodes::descriptors::llm, nodes::llm::factory);
89 registry.register_lazily_described(
90 "question-classifier",
91 nodes::descriptors::question_classifier,
92 nodes::classifier::factory,
93 );
94 registry.register_lazily_described(
95 "parameter-extractor",
96 nodes::descriptors::parameter_extractor,
97 nodes::extractor::factory,
98 );
99 registry.register_lazily_described("agent", nodes::descriptors::agent, nodes::agent::factory);
100 #[cfg(feature = "typesafe")]
101 registry.register_lazily_described("system-one", nodes::descriptors::system_one, nodes::system_one::factory);
102}