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.0.5
Patch Changes
#9d8e7b67 Thanks @davidkpiano! - Add adapter.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: {
/* ... */
},
},
});
//...
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.0.5
Patch Changes
#9
d8e7b67
Thanks @davidkpiano! - Addadapter.fromTool(…)
, which creates an actor that chooses agent logic based on a input.