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 List, Type
from millet import Agent, Skill

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

def skill_classifier(message: str) -> List[Type[Skill]]:
    return [MeetingSkill()]

agent = Agent(skill_classifier=skill_classifier)
conversation = agent.conversation_with_user("Bob")
>>> 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 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size Millet-0.1.1.tar.gz (17.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page