deeppavlov.agents.default_agent¶
Default agent with filters and processors support.
-
class
deeppavlov.agents.default_agent.default_agent.
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)[source]¶ 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.skill.Skill
,deeppavlov.core.agent.Filter
,deeppavlov.core.agent.Processor
base classes to get more info.Parameters: - skills – List of initiated agent skills instances.
- skills_processor – Initiated agent processor.
- skills_filter – Initiated agent filter.
-
skills
¶ List of initiated agent skills instances.
-
skills_processor
¶ Initiated agent processor.
-
skills_filter
¶ Initiated agent filter.