Skip to main content

No project description provided

Project description

Local AI Utils - Assist

A plugin for local-ai-utils, adding the ability to interact with an LLM Assistant. It is exposed as a CLI utility named assist, which can be sent a prompt. It also adds tool support that other LAIU plugins can tie in to.

Assist Demo

Quickstart

Installation

Currently installation is only supported via the GitHub remote.

pip install local-ai-utils-assist

Configuration

Then update your ai-utils.yml file.

  • assist.assitant is an OpenAI Assistant id
  • assist.thread is an OpenAI Thread that has been started with the above assitant
  • assist.mcp.servers takes a configuration block following the mcp-agent schema (it's functionally equivalent to Claude Code's format)
  • assist.mcp.servers.[name].skip_confirmation allows you to list tools from that server that can be run without any confirmation.
  • keys.openai is your Open AI secret key.

Usage

$ # Run once for new installs, and whenever new plugins are added
$ assist update_assistant
<outputs the configuration details of your assistant>


$ assist prompt "Make a note to call Joe"
OK, I've created a note to call Joe!

Configuration

These fields are required:

  • assist.assistant
  • assist.thread
  • keys.openai

~/.config/ai-utils.yaml

plugins:
    assist:
        assistant: "asst_123"
        thread: "thread_321"
        mcp:
            servers:
                heroku:
                    command: npx
                    args: ["-y", "@heroku/mcp-server"]
                    env:
                        HEROKU_API_KEY: "HRKU-12345"
                    skip_confirmation:
                        - list_apps
keys:
    openai: "sk-proj-abc"

[!WARNING] There is a known bug right now that failed tool calls can leave a Thread in a broken state. If encountered, you will see errors referencing an inability to create new runs on threads that are in-progress. You can reset this by generating a new thread, and updating assist.thread in your ai-utils.yml.

Plugin Tools

When local-ai-utils-assist is installed, all other LAIU plugins can now make use of the functions keyword in their PluginConfig object. This key can be passed an array of objects matching the OpenAI Function Definition. See the notes plugin for an example.

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

local_ai_utils_assist-0.2.4.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

local_ai_utils_assist-0.2.4-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file local_ai_utils_assist-0.2.4.tar.gz.

File metadata

  • Download URL: local_ai_utils_assist-0.2.4.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for local_ai_utils_assist-0.2.4.tar.gz
Algorithm Hash digest
SHA256 18cd997d1b93a71ec61f3bb8a924a191a71f89d6dedc1be9574d9c5a1ae25ff6
MD5 a632e5ad4416d56a7b9f0216849e10c9
BLAKE2b-256 7715e2bca637bde332dfb4fa6b601b7a448533ac8dfd1c1022980ba05a0fe4fe

See more details on using hashes here.

File details

Details for the file local_ai_utils_assist-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for local_ai_utils_assist-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ae1d909303c2fc5994dfebaf604a39a310f2743209fd0765d8b2a24b6b63dadf
MD5 88877fbc0b11095a358e70ecd7580be7
BLAKE2b-256 296dbfb92c12ef6d3e4f50663ab3151f30945798cbd419b13e4ccca0e67bbfa0

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 Pingdom Monitoring Sentry Error logging StatusPage Status page