0.0.34 • Published 10 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
10 months ago
0.0.33
10 months ago
0.0.32
10 months ago
0.0.31
11 months ago
0.0.30
11 months ago
0.0.29
11 months ago
0.0.28
11 months ago
0.0.27
11 months ago
0.0.26
11 months ago
0.0.25
11 months ago
0.0.24
11 months ago
0.0.23
11 months ago
0.0.22
11 months ago
0.0.21
11 months ago
0.0.20
11 months ago
0.0.19
11 months ago
0.0.18
11 months 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