Default agent with filters and processors support.
DefaultAgent(skills: List[deeppavlov.core.skill.skill.Skill], skills_processor: Optional[deeppavlov.core.agent.processor.Processor] = None, skills_filter: Optional[deeppavlov.core.agent.filter.Filter] = None, *args, **kwargs)¶
DeepPavlov default implementation of Agent abstraction.
Default Agent is an implementation of agent template, with following pipeline for each utterance batch received by agent: 1) Utterance batch is processed through agent Filter which selects utterances to be processed with each agent skill; 2) Utterances are processed through skills selected for them; 3) Utterances and skill responses are processed through agent Processor which generates agent’s response for the outer world. Defining DefaultAgent means: a) To define set of skills it uses; b) To implement skills Filter; c) To implement Processor. You can refer to
deeppavlov.core.agent.Processorbase classes to get more info.
- skills – List of initiated agent skills instances.
- skills_processor – Initiated agent processor.
- skills_filter – Initiated agent filter.
List of initiated agent skills instances.
Initiated agent processor.
Initiated agent filter.