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 git+https://github.com/local-ai-utils/core

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.3.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.3-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: local_ai_utils_assist-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b8028759437d69651dc08fce1a36f073ceaf6c279f5b1146c7e81c93dc9ea3e5
MD5 5dbc019cb1d764516f70d72bb6105626
BLAKE2b-256 ae7fbd472bb72d0dd9d08c110c499c9cd65e1b3f807a867aab182d73ab8eacb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for local_ai_utils_assist-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e7740778ce59115e65fa31139d6a10b2493163a2c960a4bb868d7c9b87de309
MD5 54787217012d7beed9af96f444286d28
BLAKE2b-256 88e0c08c9ba25a31c7629832016096529c63af53f0ddd0babf100173df9a98ff

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