Middleware for logging agent conversations to a transcript logger.
Creates a new instance of the TranscriptLoggerMiddleware class.
The transcript logger to use.
Will throw an error if the logger is not provided.
Called each time the agent processes a turn.
The context object for the turn.
The next middleware or handler to call.
Middleware for logging agent conversations to a transcript logger.