Skip to main content

Memory tools for LLM

Project description

llm-tools-memory

PyPI Changelog Tests License

Memory tools for LLM

Installation

Install this plugin in the same environment as LLM.

llm install llm-tools-memory

Usage

To use this with the LLM command-line tool:

llm --tool create_memory "Example prompt goes here" --tools-debug

With the LLM Python API:

import llm
from llm_tools_memory import create_memory

model = llm.get_model("gpt-4.1-mini")

result = model.chain(
    "Example prompt goes here",
    tools=[create_memory]
).text()

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-tools-memory
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

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

llm_tools_memory-0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

llm_tools_memory-0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file llm_tools_memory-0.1.tar.gz.

File metadata

  • Download URL: llm_tools_memory-0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_tools_memory-0.1.tar.gz
Algorithm Hash digest
SHA256 760e6ca85dfc7347e5600104d65769949c342bbcad3378c5269afe7a45bd54d1
MD5 12a03491233034dcb44cf5fd33f35855
BLAKE2b-256 1415d83ac8f6b248a2e09eabc5d51b7fa0e3b5518e0cd3408d0881a9c83d3e00

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_memory-0.1.tar.gz:

Publisher: publish.yml on tombedor/llm-tools-memory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_tools_memory-0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_tools_memory-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_tools_memory-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd15d13fafb925666c2d786e4795e90c8bfdc7515ce0451bdbf002f5ff5d3cd
MD5 9e1356b0695e721f1b3160b72a5c7392
BLAKE2b-256 733240755c6dcf9fbdf8cc57afc511f34258d6abb747bc8e4ab49eda087e9421

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_memory-0.1-py3-none-any.whl:

Publisher: publish.yml on tombedor/llm-tools-memory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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