Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.45 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.45 KB

Build CI Deploy CI

Oratio

The main entry point of Milobella. We send it text and it returns vocalizable answer.

Prerequisites

Install

$ go build -o bin/oratio cmd/oratio/main.go

Run

$ bin/oratio

configuration config.toml will be checked in the following paths

  • /etc/oratio
  • $HOME/.oratio
  • .

A configuration example can be found in config.toml.

Examples of requests

Talk to oratio

$ curl -iv -H "Content-Type: application/json" -X POST http://localhost:9100/api/v1/talk/text -d '{"text": "Quelle heure il est ? "}'

Register a new ability

$ curl -iv -H "Content-Type: application/json" -X POST http://localhost:9100/api/v1/abilities -d '{"name": "clock", "intents":["GET_TIME"], "host": "localhost", "port": 10300}'

Get all registered abilities from every source (cache, database, config)

$ curl -iv -X GET http://localhost:9100/api/v1/abilities

Get abilities from cache, database, or config

$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=cache
$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=database
$ curl -iv -X GET http://localhost:9100/api/v1/abilities?from=config