Skip to content

Identity output transformer

Defines an output transformer that transforms the output of a language model into an identity function.

Authors

Henry Wicaksono (henry.wicaksono@gdplabs.id)

References

NONE

IdentityOutputTransformer(event_emitter=None)

Bases: BaseOutputTransformer

An output transformer that transforms the output of a language model into an identity function.

This transformer simply returns the output and stream events of the language model as is.