Download the PHP package assistant-engine/open-functions-memory without Composer

On this page you can find all versions of the php package assistant-engine/open-functions-memory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package open-functions-memory

![Demo Video](media/memory-preview.gif)

Memory OpenFunction

The Memory OpenFunction is an implementation of the OpenFunctions architecture designed to provide a standardized interface for managing memories within your AI-powered applications. This repository allows language models (LLMs) to store, update, remove, and list memories easily.

Key Features:

Installation

Install the Memory OpenFunction via Composer:

Usage

Using the OpenAI PHP SDK

Below is a basic example of how to use the Memory OpenFunction directly with the OpenAI PHP SDK:

Using the Filament Assistant Plugin

The Memory OpenFunction can also be integrated as a tool within the Filament Assistant Plugin. To add it, include the following configuration in your config/filament-assistant.php file:

With this configuration in place, your assistant can directly utilize the Memory tool. You can add multiple tools to enhance your assistant’s capabilities.

Memory Driver

The Memory OpenFunction interacts with a driver to handle storing, retrieving, and managing memory data. The driver must implement the MemoryDriverInterface, which defines a standardized set of methods.

For your convenience, there is already a JSON memory driver provided. This is just a demonstration driver. Feel free to implement the driver yourself using other storage options like MySQL, Redis, or any other preferred storage system. The JSON memory driver stores a data object like this:

Using the Memory Presenter

The MemoryPresenter implements the MessageListExtensionInterface from the OpenFunctions architecture. This interface allows the presenter to extend or modify a MessageList before it’s sent to the language model. The idea is to provide the LLM with more context by preloading user memories into the conversation history.

Feel free to adjust the MemoryPresenter implementation or integrate it with your custom memory drivers as needed!

Methods

Method Description Parameters
addMemory Adds a new memory entry. content: string (required)
updateMemory Updates an existing memory by its ID. memoryId: string (required);
newContent: string (required)
removeMemory Removes a memory entry by its ID. memoryId: string (required)
listMemories Lists all stored memories. None

Available Open Function Implementations

In addition to creating your own OpenFunction, there are several ready-to-use implementations available like Slack, Trello, Notion, Jira Service Desk, Bitbucket, and GitHub.

You can find a list of all OpenFunctions inside the OpenFunctions Core repository.

Consultancy & Support

Do you need assistance integrating OpenFunctions into your application, or help setting it up?
We offer consultancy services to help you get the most out of our package, whether you’re just getting started or looking to optimize an existing setup.

Reach out to us at contact@assistant-engine.com.

Contributing

We welcome contributions from the community! Feel free to submit pull requests, open issues, and help us improve the package.

License

This project is licensed under the MIT License. Please see License File for more information.


All versions of open-functions-memory with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
assistant-engine/open-functions-core Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package assistant-engine/open-functions-memory contains the following files

Loading the files please wait ....