-
Notifications
You must be signed in to change notification settings - Fork 49
Description
We've spoken a lot about "tools," and the abilities they'd unlock. Now that we have the message types in place, routing, and the db backend, I think we have most of the pieces necessary to start playing around with this.
It likely makes sense to consider this in the context of Langchain, which already gives us access to Agents and Tools. Here, a "tool" means:
interface Tool {
call(arg: string): Promise<string>;
name: string;
description: string;
}So we could begin by providing a way to write/upload/store JS (or TS and transpile, or I guess whatever lang and compile to WASM) which exports a call(arg: string): Promise<string> function.
We now have /c/* for chats. What about /t/* for tools?
How do we use these tools? Do we create a Toolkit for an agent to use, based on all the /t/* tools owned by the user? Or do we have some way to insert a Tool as context in a message? Or both?