This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@statelyai/agent@0.1.0
Minor Changes
#32537f501 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
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@statelyai/agent@0.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