Skip to content

Simple Batch EngineΒΆ

Reference batch-aware engine used in tutorials and tests.

ClassesΒΆ

BatchItem ΒΆ

Bases: BaseModel

Input payload used by reference tests and tutorials.

BatchSummary ΒΆ

Bases: BaseModel

Output payload describing the batch that was processed.

SimpleBatchEngine ΒΆ

Bases: EngineComponent

Example engine that processes items individually or in batches.

  • evaluate is used when the agent is invoked directly without BatchSpec.
  • evaluate_batch is triggered when BatchSpec flushes accumulated artifacts.

The engine simply annotates each item with the current batch size so tests can verify that all artifacts were processed together.

FunctionsΒΆ