Module engine

Source

Structs§

ResponseStream
Adapter for a DataStream to a ResponseStream.

Traits§

AsyncEngine
Engine is a trait that defines the interface for a steaming LLM completion engine. The synchronous Engine version is does not need to be awaited.
AsyncEngineContext
The AsyncEngineContext trait defines the interface to control the resulting stream produced by the engine.
AsyncEngineContextProvider
AsyncEngineController
AsyncEngineStream
AsyncEngineUnary
Data
All Send + Sync + 'static types can be used as AsyncEngine request and response types.

Type Aliases§

Context
DataStream
DataUnary
DataStream is a type alias for a stream of Data items. This can be adapted to a ResponseStream by associating it with a AsyncEngineContext.
Engine
EngineStream
EngineUnary

Attribute Macros§

async_trait