Releases: statelyai/agent
Releases · statelyai/agent
v1.1.6
Patch Changes
v1.1.5
Patch Changes
- #49
ae505d5Thanks @davidkpiano! - Updateaipackage
v1.1.4
Patch Changes
- #47
185c149Thanks @davidkpiano! - Updateaiandxstatepackages
v1.1.3
v1.1.2
v0.1.0
Minor Changes
-
#32
537f501Thanks @davidkpiano! - First minor release of@statelyai/agent! The API has been simplified from experimental earlier versions. Here are the main methods:createAgent({ … })creates an agentagent.decide({ … })decides on a plan to achieve the goalagent.generateText({ … })generates text based on a promptagent.streamText({ … })streams text based on a promptagent.addObservation(observation)adds an observation and returns a full observation objectagent.addFeedback(feedback)adds a feedback and returns a full feedback objectagent.addMessage(message)adds a message and returns a full message objectagent.addPlan(plan)adds a plan and returns a full plan objectagent.onMessage(cb)listens to messagesagent.select(selector)selects data from the agent contextagent.interact(actorRef, getInput)interacts with an actor and makes decisions to accomplish a goal
v0.0.8
Patch Changes
-
#22
8a2c34bThanks @davidkpiano! - ThecreateSchemas(…)function has been removed. ThedefineEvents(…)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
Patch Changes
- #18
dcaababThanks @davidkpiano! -contextis now optional forcreateSchemas(…)
v0.0.6
Patch Changes
- #16
3ba5fb2Thanks @davidkpiano! - Update to XState 5.8.0
v0.0.5
Patch Changes
-
#9
d8e7b67Thanks @davidkpiano! - Addadapter.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: { /* ... */ }, }, }); //...