Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-solver-failure-plugin

A chat engine plugin for OpenVoiceOS personas that never answers the question. It always returns a canned line, so it works as the last link of a persona chain when every other handler declines. Registered as ovos-solver-failure-plugin in the opm.agents.chat entry-point group.

Install

pip install ovos-solver-failure-plugin

Usage

In a persona file, list it last:

{"name": "OldSchoolBot", "solvers": ["ovos-solver-rivescript-plugin", "ovos-solver-failure-plugin"]}

Directly:

from ovos_plugin_manager.templates.agents import AgentMessage, MessageRole
from ovos_solver_failure_plugin import FailureChatEngine

engine = FailureChatEngine()
reply = engine.continue_chat([AgentMessage(MessageRole.USER, "hello")], lang="en-US")
print(reply.content)
# 404 brain not found

The plugin ships lines for en-US, da-DK, fr-FR, and sv-SE in locale/<lang>/no_brain.dialog. The lang argument picks the closest shipped language (en-us and en-GB both resolve to en-US). If no shipped language is close enough, the reply is 404.

License

MIT

Metadata

Release files for ovos-solver-failure-plugin 1.0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-solver-failure-plugin 1.0.0a1
File Size Uploaded
ovos_solver_failure_plugin-1.0.0a1.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-solver-failure-plugin 1.0.0a1
File Interpreter ABI Platform
ovos_solver_failure_plugin-1.0.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / ovos_solver_failure_plugin-1.0.0a1.tar.gz

Download URL ovos_solver_failure_plugin-1.0.0a1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b2fc3b8593381d7e3fc6e02d4eaa5f99cdb03b1229388c3a328c3bdc2f0932f
BLAKE2b-256 checksum
How to use checksums
380e3e3878500713244513f910d27f3404acec3b0fb4a5bc06d65afe0f824983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_solver_failure_plugin-1.0.0a1-py3-none-any.whl

Download URL ovos_solver_failure_plugin-1.0.0a1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9e2487b97955967e4b687eadbaf2a0b2482a5db5a45f6cf8aa3745244c78c4f
BLAKE2b-256 checksum
How to use checksums
1cdd2cc91438f1c0eb8b561fa6f0fba0c979ee6f4698ded373e7c28cf9b7cb4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page