-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addHistory -> addMessage + changeset
- Loading branch information
1 parent
2a22df4
commit 537f501
Showing
6 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@statelyai/agent': minor | ||
--- | ||
|
||
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters