Releases: statelyai/agent
Releases · statelyai/agent
v1.1.6
Patch Changes
v1.1.5
Patch Changes
- #49
ae505d5
Thanks @davidkpiano! - Updateai
package
v1.1.4
Patch Changes
- #47
185c149
Thanks @davidkpiano! - Updateai
andxstate
packages
v1.1.3
v1.1.2
v0.1.0
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 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
8a2c34b
Thanks @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
dcaabab
Thanks @davidkpiano! -context
is now optional forcreateSchemas(…)
v0.0.6
Patch Changes
- #16
3ba5fb2
Thanks @davidkpiano! - Update to XState 5.8.0
v0.0.5
Patch Changes
-
#9
d8e7b67
Thanks @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: { /* ... */ }, }, }); //...