Skip to main content

A small wrapper library to help test systems using STAR

Reason this release was yanked:

A bug in the CI pipeline caused the wrong version number to be used

Project description

MOdel Test Harness (Moth)

Simple way to interrogate your AI model from a separate testing application

Quickstart

moth server <folder path>

moth client

Simplest possible model client

from moth import Moth
from moth.message import ImagePromptMsg, PromptResultMsg

moth = Moth("my-ai")

@moth.prompt
def on_prompt(prompt: ImagePromptMsg):
    # TODO: Do smart AI here
    return PromptResultMsg(class_name="cat") # Most pictures are cat pictures 

moth.run()

Project details


Download files

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

Source Distribution

starmoth-0.0.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

starmoth-0.0.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page