Agent as a FunctioncreateAgent wraps an async function receiving props — input goes in, result comes out
Prompt Building with Hooksequip family (system / instruction / tool / memory) aggregates in place, no more string concatenation or explicit ctx
reborn Rebuilds ContextInstead of appending history across rounds, each round re-renders the Prompt with fresh Memory — goal-oriented.