Skip to main content

Crate klieo_macros

Crate klieo_macros 

Source
Expand description

Procedural macros for the klieo agent framework.

See the docs on tool for the #[tool] attribute macro and on derive_klieo_response for the #[derive(KlieoResponse)] macro.

Attribute Macros§

test
Mark an async fn test as a klieo test: emits a sync #[test] fn that builds a current_thread tokio runtime, optionally constructs a klieo_core::test_utils::TestContext, and block_ons the body.
tool
Turn an async fn into a klieo_core::Tool implementation.

Derive Macros§

KlieoResponse
Derive klieo_core::KlieoResponse for a struct so it can be the typed payload of a structured LLM response.