Skip to main content

Crate troupekit_agent

Crate troupekit_agent 

Source
Expand description

Persona TOML agents for Troupekit: a layered persona loader with strict validation, and AgentRun, a serializable state machine the host steps and checkpoints, with concurrent allowed tools, typed output, evals with one repair round, layered budgets and core events.

Re-exports§

pub use io::AgentIo;
pub use io::EventSink;
pub use io::ModelHandle;
pub use io::SimpleIo;
pub use io::VecSink;
pub use run::drive;
pub use run::AgentRun;
pub use run::PendingCall;
pub use run::RunState;
pub use run::StepOutcome;
pub use run::RUN_FORMAT;
pub use budget::InMemoryLedger;
pub use budget::Limits;
pub use budget::PeriodLimit;
pub use dsl::parse_call;
pub use dsl::Call;
pub use error::AgentError;
pub use error::PersonaError;
pub use eval::EvalFn;
pub use eval::EvalRegistry;
pub use loader::builtin;
pub use loader::DirSource;
pub use loader::MemorySource;
pub use loader::PersonaLoader;
pub use loader::PersonaSource;
pub use persona::Budget;
pub use persona::Persona;
pub use persona::DEFAULT_MAX_TOKENS;
pub use persona::DEFAULT_MAX_TURNS;
pub use schema::compile_output;
pub use schema::validate;

Modules§

budget
dsl
error
eval
io
loader
persona
run
schema

Traits§

UsageLedger
Spend totals per key for the current period, kept by the host (for example one row per goal and month). period_total returns millionths of a US dollar spent so far; record adds one call’s usage.