deeppavlov/agents/hello_bot_agent/hello_bot_agent.py
def make_hello_bot_agent() -> DefaultAgent:
    """Builds agent based on PatternMatchingSkill and HighestConfidenceSelector.

    This is agent building tutorial. You can use this .py file to check how hello-bot agent works.

    Returns:
        agent: Agent capable of handling several simple greetings.
    """
    skill_hello = PatternMatchingSkill(['Hello world'], patterns=['hi', 'hello', 'good day'])
    skill_bye = PatternMatchingSkill(['Goodbye world', 'See you around'], patterns=['bye', 'chao', 'see you'])
    skill_fallback = PatternMatchingSkill(['I don\'t understand, sorry', 'I can say "Hello world"'])

    agent = DefaultAgent([skill_hello, skill_bye, skill_fallback], skills_processor=HighestConfidenceSelector())

    return agent
def make_hello_bot_agent() -> DefaultAgent:
    skill_hello = PatternMatchingSkill(['Hello world'], patterns=['hi', 'hello', 'good day'])
    skill_bye = PatternMatchingSkill(['Goodbye world', 'See you around'], patterns=['bye', 'chao', 'see you'])
    skill_fallback = PatternMatchingSkill(['I don\'t understand, sorry', 'I can say "Hello world"'])

    agent = DefaultAgent([skill_hello, skill_bye, skill_fallback], skills_processor=HighestConfidenceSelector())

    return agent
def make_hello_bot_agent ( ) -> DefaultAgent : skill_hello = PatternMatchingSkill ( [ 'Hello world' ] , patterns = [ 'hi' , 'hello' , 'good day' ] ) skill_bye = PatternMatchingSkill ( [ 'Goodbye world' , 'See you around' ] , patterns = [ 'bye' , 'chao' , 'see you' ] ) skill_fallback = PatternMatchingSkill ( [ 'I don\'t understand, sorry' , 'I can say "Hello world"' ] ) agent = DefaultAgent ( [ skill_hello , skill_bye , skill_fallback ] , skills_processor = HighestConfidenceSelector ( ) ) return agent
Builds agent based on PatternMatchingSkill and HighestConfidenceSelector.

    This is agent building tutorial. You can use this .py file to check how hello-bot agent works.

    Returns:
        agent: Agent capable of handling several simple greetings.
Builds agent based on PatternMatchingSkill and HighestConfidenceSelector .