Skip to main content
Pre-release

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

hivemind-persona-agent-plugin

An ovos-persona agent protocol for HiveMind-core. The hub answers natural-language queries from an LLM or solver persona instead of a full OVOS skills stack.

Unlike the default hivemind-ovos-agent-plugin, this agent needs no OVOS bus and no running skills. It answers queries directly from the configured persona. It streams the model output sentence by sentence, so a satellite can start speaking before generation finishes.

Install

pip install hivemind-persona-agent-plugin

Or from source:

git clone https://github.com/JarbasHiveMind/hivemind-persona-agent-plugin
cd hivemind-persona-agent-plugin
pip install -e .

Quickstart

1. Create a persona file

ovos-persona personas are JSON files. Here is a minimal LLM-backed persona:

{
  "name": "MyAssistant",
  "solvers": [
    {
      "module": "ovos-solver-openai-plugin",
      "ovos-solver-openai-plugin": {
        "api_url": "http://localhost:8000/v1",
        "model": "local-model"
      }
    }
  ]
}

Save it to ~/.config/ovos_persona/persona.json, or any path. You reference the path in the config below.

2. Configure hivemind-core

Edit ~/.config/hivemind-core/server.json:

{
  "agent_protocol": {
    "module": "hivemind-persona-agent-plugin",
    "hivemind-persona-agent-plugin": {
      "persona": "~/.config/ovos_persona/persona.json"
    }
  }
}

The persona value can be either:

  • a path to a persona JSON file (string, ~ expands), or
  • an inline persona config dict.

3. Start hivemind-core

hivemind-core listen

Satellites that connect to this hub receive answers streamed from the persona.

Configuration

All keys live under "hivemind-persona-agent-plugin" in server.json.

Key Type Required Description
persona string or dict yes Path to a persona JSON file, or an inline persona config.

How queries are answered

The QUERY handler in hivemind-core calls natural_language_query(utterance, lang) on the active agent. This plugin implements that method. It calls Persona.stream(messages, lang=lang) and yields each output chunk as the persona produces it. The final None sentinel signals end of query to hivemind-core, which sends a hive.query.complete control message back to the satellite.

See docs/query_flow.md for a detailed trace.

Documentation

Related projects

License

Apache 2.0.

Download files

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

Source Distribution

hivemind_persona_agent_plugin-0.0.3a3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file hivemind_persona_agent_plugin-0.0.3a3.tar.gz.

File metadata

File hashes

Hashes for hivemind_persona_agent_plugin-0.0.3a3.tar.gz
Algorithm Hash digest
SHA256 401f626865493d9a8d7c5bff7c72c6a04c9de89516e8a1622396b8cde17ede09
MD5 2360e3781d3923f59613437f5b0f6f04
BLAKE2b-256 0c43e6416b3cdd176b47e77d6a693cfa174a9a488e4dae80dd7d69642e9a4ea7

See more details on using hashes here.

File details

Details for the file hivemind_persona_agent_plugin-0.0.3a3-py3-none-any.whl.

File metadata

File hashes

Hashes for hivemind_persona_agent_plugin-0.0.3a3-py3-none-any.whl
Algorithm Hash digest
SHA256 20ffc5156bd9717d5af46bd430c79d8d5a152c7d349adac633f8fbee42791215
MD5 f19e35238ecdce6c871221cb6abfeaed
BLAKE2b-256 3532cac8e6b653e7793afc0cdff0742df047a02749398bd2b95b777a294a0de9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page