0.0.34 • Published 12 months ago
@credal-ai/actions v0.0.34
actions
Adding or updating actions
- Add or update the action in
src/actions/schema.yaml - Run
npm run generate:typesto generate the new types - Run
npm run prettier-formatto format the new files - Create a new provider function in
src/actions/providers/<provider>/<action>.ts(eg.src/actions/providers/math/add.ts) which exports a function using the generated types - If adding a new action or provider, update
src/actions/actionMapper.tsandsrc/actions/groups.ts. - In
package.json, bump the version number. - Run
npm publish --access publicto publish the new version to npm. (Need to be logged in vianpm login)
Usage
Invoking an action:
import { runAction } from "@credal-ai/actions";
const result = await runAction(
"listConversations",
"slack",
{ authToken: "xoxb-..." },
{}
);Running a basic test for runAction
npx ts-node -r tsconfig-paths/register --project tsconfig.json tests/testRunMathAction.ts0.0.34
12 months ago
0.0.33
1 year ago
0.0.32
1 year ago
0.0.31
1 year ago
0.0.30
1 year ago
0.0.29
1 year ago
0.0.28
1 year ago
0.0.27
1 year ago
0.0.26
1 year ago
0.0.25
1 year ago
0.0.24
1 year ago
0.0.23
1 year ago
0.0.22
1 year ago
0.0.21
1 year ago
0.0.20
1 year ago
0.0.19
1 year ago
0.0.18
1 year ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago