agent_tk/
lib.rs

1#![doc = include_str!("../README.MD")]
2#![allow(unused)]
3#![warn(missing_docs)]
4#![deny(warnings)]
5
6mod error;
7
8pub mod agent;
9pub mod consts;
10pub mod conversion;
11pub mod decision;
12pub mod definitions;
13pub mod delegation;
14pub mod execution;
15pub mod knowledge_base;
16pub mod module;
17pub mod monitor;
18pub mod projection;
19pub mod simulation;
20pub mod states;
21mod statistics;
22pub mod uuid;
23
24pub mod prelude;
25mod utils;
26
27pub use error::Error;
28/// Result type for agent-tk
29pub type Result<T> = std::result::Result<T, Error>;
30
31pub use agent::Agent;
32
33pub use yaaral;
34
35#[cfg(feature = "tokio_runtime")]
36pub use yaaral::tokio::Runtime;
37
38#[cfg(all(feature = "futures_runtime", not(feature = "tokio_runtime")))]
39pub use yaaral::futures::Runtime;
40
41#[cfg(all(
42  feature = "bevy_runtime",
43  not(any(feature = "tokio_runtime", feature = "futures_runtime"))
44))]
45pub use yaaral::bevy::{async_compute_task_pool, io_task_pool, AsyncComputeTaskRuntime as Runtime};
46
47/// Alias for the runtime task handle
48pub type TaskHandle<T> = <Runtime as yaaral::TaskInterface>::TaskHandle<T>;