@actwith-ai/sdk 0.3.2 → 0.5.0
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/README.md +5 -1
- package/dist/index.d.mts +830 -1
- package/dist/index.d.ts +830 -1
- package/dist/index.js +715 -51
- package/dist/index.mjs +715 -51
- package/package.json +12 -9
package/README.md
CHANGED
|
@@ -110,7 +110,11 @@ new ActwithClient({
|
|
|
110
110
|
import { ActwithClient, ActwithError } from "@actwith-ai/sdk";
|
|
111
111
|
|
|
112
112
|
try {
|
|
113
|
-
await actwith.createTask({
|
|
113
|
+
await actwith.createTask({
|
|
114
|
+
swarmId: "xxx",
|
|
115
|
+
description: "Test",
|
|
116
|
+
bounty: 1000,
|
|
117
|
+
});
|
|
114
118
|
} catch (error) {
|
|
115
119
|
if (error instanceof ActwithError) {
|
|
116
120
|
console.log(error.code); // e.g., 'INSUFFICIENT_FUNDS'
|