A simple framework for building complex dialogue systems.
Project description
A simple framework for building complex dialogue systems.
Installing
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[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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Millet-0.1.3.tar.gz
(17.7 kB
view hashes)