We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d9e46 commit 6370e77Copy full SHA for 6370e77
js/src/sdk/actionRegistry.ts
@@ -81,6 +81,16 @@ export class ActionRegistry {
81
if (!options.actionName) {
82
throw new Error("You must provide actionName for this action");
83
}
84
+ if (!options.toolName) {
85
+ throw CEG.getCustomError(
86
+ COMPOSIO_SDK_ERROR_CODES.COMMON.INVALID_PARAMS_PASSED,
87
+ {
88
+ message: "Tool name is required",
89
+ description:
90
+ "Please provide a toolName when creating a custom action",
91
+ }
92
+ );
93
94
if (!options.inputParams) {
95
options.inputParams = z.object({}) as P;
96
0 commit comments