Skip to main content

agent_works/focus/
mod.rs

1//! Focus — A focused LLM call.
2//!
3//! Each Focus instance is bound to a system prompt and dedicated to one specific
4//! judgment question. Callers only need to provide input and the expected return
5//! type; the framework handles LLM invocation, JSON parsing, and timeouts.
6//!
7//! # Design Philosophy
8//!
9//! Throwing all judgments at the LLM at once overwhelms it. Especially for
10//! generalized concerns, we need to decompose — the LLM should focus on one thing
11//! at a time, keeping it simple enough to handle. If the business decomposition
12//! is good, even a weak model can do one thing well.
13
14mod core;
15
16pub use core::{Context, Focus, FocusError, FocusInput, FocusOutput};