agent-protocol icon indicating copy to clipboard operation
agent-protocol copied to clipboard

JS SDK - Feature: Add a storage abstraction for persisting task objects and artifacts to other storage locations like redis #2

Open hackgoofer opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

You can't scale out an Agent because tasks and artifacts are only ever stored in memory.

Describe the solution you'd like

There should be a storage abstraction added that lets you replace the in-memory based storage of tasks and artifacts with an external storage container like redis. I would also add the ability for the Agent developer to store their own state alongside the tasks and artifacts.

The CRUD operations around artifacts should also be abstracted:

https://github.com/AI-Engineer-Foundation/agent-protocol-sdk-js/blob/main/src/agent.ts#L355

I may want to store them in some form of blob storage versus the local disk.

Original link: https://github.com/AI-Engineer-Foundation/agent-protocol-sdk-js/issues/2

hackgoofer avatar Nov 27 '23 22:11 hackgoofer

I've just created a new repo for file storage - https://github.com/nalbion/any-cloud-storage

Supports AWS, GCP, Firebase, Supabase, git and local file system

nalbion avatar Feb 14 '24 04:02 nalbion