Skip to main content

AgentEngine

@retinue/monorepo


@retinue/monorepo / backend/src / AgentEngine

Interface: AgentEngine

Defined in: backend/src/runtime/worker.ts:72

The pluggable agent loop (model + tools). Yields typed events; MUST be resumable from resume (never re-run a tool already present in the checkpoint), MUST wrap provider calls in runWithRetry and yield run.retry-pending, and SHOULD abort provider/tools when the async iterator is return()-ed or signal.isCancelled() flips.

Methods​

run()​

run(input): AsyncIterable<EngineEvent>

Defined in: backend/src/runtime/worker.ts:73

Parameters​

input​

EngineRunInput

Returns​

AsyncIterable<EngineEvent>