CLI management
The SERMAS CLI offer a simplified method to handle an application.
The CLI takes care of syncing with the API based on the directory structure and can be used to manage and update common parts of the application.
An application folder is composed of differents parts and we are going to cover them in this page
Definition can be in JSON (.json) or YAML (.yaml, .yml)
app.yaml
The application definition is the core of a SERMAS application
# the app name
name: My app
# provides a friendly name for the applicaiton
description: My cool assistant
# indicate if the app should be listed to unautheticated users
public: true
modules.yaml
A list of modules with enabled permission to access specific resources. Each module will create a client with credentials to obtaing access tokens.
- moduleId: avatar
# secret will be used as client secret.
# Leave empty to generate on.
secret: null
# List of supported modules.
# Each module has a set of permissions applied to its client.
# The full list of available permissions is available at
# http://localhost:8080/api/swagger#/PLATFORM/getSettings
# Definition supports dotted notation eg. `detection.user` or `detection.*` which is (same as just `detection`)
supports:
- dialogue
- detection
- ui
- session
- platform
# additional module-specific configuration, free-form key-value store
config: {}
settings.yaml
Settings allows to configure some aspects of the applicaitons
# requires login
# if set to true, the application will require the user to login
login: false
# id of the default avatar
# taken from repository -> avatars -> id
avatar: anna
# background for the avatar
# taken from repository -> backgrounds -> id
background: milkyway
# language of the avatar, this may depend on the TTS/STT choosen.
# It will be also used to translate conversation as needed
language: en-GB
# optional: a model per task, as openai/<model served by the platform's endpoint>.
# Left out, the platform's configured model is used (see the LLM page)
# llm:
# chat: openai/gpt-4o
# tools: openai/gpt-4o-mini
# default avatar prompt, this will be used as baseline in conversations.
# This prompt defines the overall direction of the conversation along with the avatar specific prompt
prompt:
text: >-
You are a proven chef helping users cook delicious and healthly meals.
Repository
The CLI will scan for assets to be uploaded along with configurations.
To add additional metadata to an asset, use the pattern <filename.ext>.[json|yaml] or <filename>.[json|yaml].
An example
# Asset file
repository/avatar/myavatar.glb
# Matching metadata file(s). Both .json and .yaml extensions works
repository/avatar/myavatar.glb.yaml
repository/avatar/myavatar.yaml
An example structure using metadata follows
repository
├── avatars
│ └── anna.yaml
├── backgrounds
│ ├── milkyway.jpg