Skip to content

Releases: statelyai/agent

v1.1.6

28 Sep 17:19
05fba0d
Compare
Choose a tag to compare

Patch Changes

  • #54 140fdce Thanks @XavierDK! - - Addressing an issue where the fullStream property was not properly copied when using the spread operator (...). The problem occurred because fullStream is an iterator, and as such, it was not included in the shallow copy of the result object.
    • Update all packages

v1.1.5

07 Aug 12:32
3198851
Compare
Choose a tag to compare

Patch Changes

v1.1.4

07 Aug 12:29
9922a1c
Compare
Choose a tag to compare

Patch Changes

v1.1.3

08 Aug 10:45
e6e78a4
Compare
Choose a tag to compare

Patch Changes

v1.1.2

08 Aug 10:44
Compare
Choose a tag to compare

Patch Changes

v0.1.0

07 Aug 13:26
Compare
Choose a tag to compare

Minor Changes

  • #32 537f501 Thanks @davidkpiano! - First minor release of @statelyai/agent! The API has been simplified from experimental earlier versions. Here are the main methods:

    • createAgent({ … }) creates an agent
    • agent.decide({ … }) decides on a plan to achieve the goal
    • agent.generateText({ … }) generates text based on a prompt
    • agent.streamText({ … }) streams text based on a prompt
    • agent.addObservation(observation) adds an observation and returns a full observation object
    • agent.addFeedback(feedback) adds a feedback and returns a full feedback object
    • agent.addMessage(message) adds a message and returns a full message object
    • agent.addPlan(plan) adds a plan and returns a full plan object
    • agent.onMessage(cb) listens to messages
    • agent.select(selector) selects data from the agent context
    • agent.interact(actorRef, getInput) interacts with an actor and makes decisions to accomplish a goal

v0.0.8

16 Mar 14:51
d851ad5
Compare
Choose a tag to compare

Patch Changes

  • #22 8a2c34b Thanks @davidkpiano! - The createSchemas(…) function has been removed. The defineEvents(…) function should be used instead, as it is a simpler way of defining events and event schemas using Zod:

    import { defineEvents } from "@statelyai/agent";
    import { z } from "zod";
    import { setup } from "xstate";
    
    const events = defineEvents({
      inc: z.object({
        by: z.number().describe("Increment amount"),
      }),
    });
    
    const machine = setup({
      types: {
        events: events.types,
      },
      schema: {
        events: events.schemas,
      },
    }).createMachine({
      // ...
    });

v0.0.7

04 Mar 15:03
3e1d02b
Compare
Choose a tag to compare

Patch Changes

v0.0.6

28 Feb 23:44
009b900
Compare
Choose a tag to compare

Patch Changes

v0.0.5

14 Feb 17:45
eb21e78
Compare
Choose a tag to compare

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: {
          /* ... */
        },
      },
    });
    
    //...