Skip to content

v0.0.5

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Feb 17:45
· 320 commits to next since this release
eb21e78

Patch Changes

  • #9 d8e7b67 Thanks @davidkpiano! - Add adapter.fromTool(…), which creates an actor that chooses agent logic based on a input.

    const actor = adapter.fromTool(() => "Draw me a picture of a donut", {
      // tools
      makeIllustration: {
        description: "Makes an illustration",
        run: async (input) => {
          /* ... */
        },
        inputSchema: {
          /* ... */
        },
      },
      getWeather: {
        description: "Gets the weather",
        run: async (input) => {
          /* ... */
        },
        inputSchema: {
          /* ... */
        },
      },
    });
    
    //...