@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 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({ swarmId: "xxx", description: "Test", bounty: 1000 });
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'