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