Skip to main content

A simple framework for building complex dialogue systems.

Project description

A simple framework for building complex dialogue systems. Documentation Status


pip install Millet

A Simple Example

from typing import Dict, List
from millet import Agent, BaseSkill, BaseSkillClassifier

class MeetingSkill(BaseSkill):
    def execute(self, initial_message: str):
        name = self.ask(question='What is your name?')
        self.say(f'Nice to meet you {name}!')

class SkillClassifier(BaseSkillClassifier):
    def skills_map(self) -> Dict[str, BaseSkill]:
        return {
            'meeting': MeetingSkill(),

    def classify(self, message: str) -> List[str]:
        return ['meeting']

skill_classifier = SkillClassifier()
agent = Agent(skill_classifier=skill_classifier)
conversation = agent.conversation_with_user('100500')
>>> conversation.query('Hello')
['What is your name?']
>>> conversation.query('Bob')
['Nice to meet you Bob!']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Millet, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size Millet-1.2.1.tar.gz (21.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page