Skip to main content

gadk_engine/
lib.rs

1// Copyright 2026 Chris Olson
2// Portions derived from ADK-Go (https://github.com/google/adk-go), Copyright 2026 Google LLC.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! gadk-engine: the LLM agent and flow, workflow engine, workflow agents, runner and built-in
17//! tools.
18//!
19//! Dropping a runner stream early unwinds rather than aborts: started work (tool calls, parallel
20//! branches, workflow nodes) finishes before the after-run callbacks — see [`runner::Runner::run`].
21
22pub mod agents;
23pub mod compactionvalidate;
24pub mod error;
25pub mod llm;
26pub mod plugin;
27pub mod runner;
28pub mod telemetry;
29pub mod tool;
30pub mod workflow;
31
32pub(crate) mod artifacts;
33pub(crate) mod compaction;
34pub(crate) mod memory;
35
36#[cfg(any(test, feature = "testutil"))]
37pub mod testutil;
38
39#[cfg(test)]
40#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
41mod parity_tests;
42
43pub use agents::{loop_agent, parallel_agent, sequential_agent, workflow_agent};
44#[allow(unused_imports)]
45pub use error::*;
46pub use llm::agent as llm_agent;
47pub use runner::{RunOptions, Runner, RunnerConfig};