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:

list[str]

Methods

cost

Report cumulative costs of applying this transducer.

__call__(conversation_log, facts_bg, facts_fg)[source]

Map from input(s) to output.

cost()

Report cumulative costs of applying this transducer.