eta.transducers.base.ResponseTransducer
- class ResponseTransducer[source]
Bases:
Transducer
Maps a conversation history and relevant knowledge to a response utterance.
- Parameters:
conversation_log (list[DialogueTurn]) – The conversation history to use as context for the response.
facts_bg (list[Eventuality]) – A list of “background” knowledge to use for the response, i.e., knowledge that may impact the resulting response, but may not be directly included in the response.
facts_fg (list[Eventuality]) – A list of “foreground” knowledge to use for the response, i.e., knowledge that should be directly included in the response.
- Returns:
A list of responses.
- Return type:
Methods
Report cumulative costs of applying this transducer.
- cost()
Report cumulative costs of applying this transducer.