functai for TypeScript - v0.1.0
    Preparing search index...

    Function delegate

    • Another program as a tool: an assistant hands part of its work to it.

      Asked inside a conversation's turn, the program answers in a conversation of its own (<conversation>.<name>, in the same store), which follows the branch of the turn that asked: asked again later on that branch, it remembers what it was asked before; on another branch, it does not. Its calls are in the asking turn's call tree, under the tool call. Outside a conversation, or with remember: false, it is called plainly. effects: what it does to the world (default: "reads" when every tool it has only reads, else unknown, which counts as "changes").

      Parameters

      • program: Program
      • opts: {
            description?: string;
            effects?: Effects | null;
            name?: string;
            remember?: boolean;
        } = {}

      Returns Tool