@statelyai/agent 2.0.0-next.4 → 2.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/calm-beans-talk.md +5 -0
- package/.changeset/long-guests-explode.md +5 -0
- package/.changeset/odd-kiwis-compare.md +5 -0
- package/.changeset/pre.json +3 -0
- package/CHANGELOG.md +12 -0
- package/architecture.tldr +652 -30
- package/dist/index.d.mts +187 -136
- package/dist/index.d.ts +187 -136
- package/dist/index.js +4377 -103
- package/dist/index.mjs +4377 -104
- package/examples/chatbot.ts +9 -5
- package/examples/cot.ts +2 -4
- package/examples/jugs.ts +2 -2
- package/examples/learn-from-feedback.ts +5 -5
- package/examples/newspaper.ts +1 -1
- package/examples/rewoo.ts +62 -0
- package/examples/river-crossing.ts +2 -2
- package/examples/serverless.ts +71 -0
- package/examples/simple.ts +1 -1
- package/examples/ticTacToe.ts +6 -2
- package/examples/wiki.ts +2 -2
- package/package.json +14 -12
- package/readme.md +57 -0
- package/src/agent.test.ts +286 -27
- package/src/agent.ts +165 -51
- package/src/decide.test.ts +2 -2
- package/src/decide.ts +24 -66
- package/src/index.ts +1 -0
- package/src/{strategies/chainOfThought.ts → policies/chainOfThoughtPolicy.ts} +7 -9
- package/src/policies/index.ts +3 -0
- package/src/{strategies/shortestPath.test.ts → policies/shortestPathPolicy.test.ts} +2 -2
- package/src/{strategies/shortestPath.ts → policies/shortestPathPolicy.ts} +8 -8
- package/src/{strategies/simpleStrategy.ts → policies/toolPolicy.ts} +26 -25
- package/src/text.ts +17 -21
- package/src/types.ts +154 -150
- package/src/agent-experimental.ts +0 -221
package/.changeset/pre.json
CHANGED
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
"@statelyai/agent": "1.1.6"
|
|
6
6
|
},
|
|
7
7
|
"changesets": [
|
|
8
|
+
"calm-beans-talk",
|
|
8
9
|
"cyan-carpets-perform",
|
|
9
10
|
"fast-donkeys-argue",
|
|
10
11
|
"grumpy-dolphins-think",
|
|
11
12
|
"light-hats-drive",
|
|
13
|
+
"long-guests-explode",
|
|
12
14
|
"nice-pants-rule",
|
|
15
|
+
"odd-kiwis-compare",
|
|
13
16
|
"old-jobs-check",
|
|
14
17
|
"old-teachers-tap",
|
|
15
18
|
"pink-eagles-deliver",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @statelyai/agent
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.5
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`2abec3e`](https://github.com/statelyai/agent/commit/2abec3e4d13d75f0ae1840f6dd2812f8fe9fb8d1) Thanks [@davidkpiano](https://github.com/davidkpiano)! - "Strategy" has been renamed to "policy", and "score" has been renamed to "reward".
|
|
8
|
+
|
|
9
|
+
- [`56ebde3`](https://github.com/statelyai/agent/commit/56ebde34ef7c897c1b845f026a5b38f41ef6a36f) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Set ai as peer dependency
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`ea0c45e`](https://github.com/statelyai/agent/commit/ea0c45e5f099ea270a8ebd49fc3f700cc5827320) Thanks [@davidkpiano](https://github.com/davidkpiano)! - You can now add **insights** for observations made. Insights are additional context about the observations made, which can be useful for agent decision making.
|
|
14
|
+
|
|
3
15
|
## 2.0.0-next.4
|
|
4
16
|
|
|
5
17
|
### Major Changes
|