🐛 Describe the bug
We are trying to create a new action for agentkit. For the sake of time we were trying to create it in our agent project, which has agentkit as a dependency.
For some reason the CreateAction decorator is really unhappy outside of the agentkit project itself.
Example is here: https://github.com/floAr/ReadyAgentOne/blob/main/agent/superfluid/superfluidStreamActionProvider.ts
I tried and reproduced with the minimal example here https://github.com/coinbase/agentkit/tree/master/typescript/agentkit#creating-an-action-provider
It fails to compile with:
Unable to resolve signature of method decorator when called as an expression.
The runtime will invoke the decorator with 2 arguments, but the decorator expects 3.ts(1241)
actionDecorator.d.ts(69, 114): An argument for 'descriptor' was not provided.
Decorator function return type 'object' is not assignable to type 'void | ((args: { myField: string; }) => Promise<string>)'.ts(1270)
Added a minimal not working sample here: https://github.com/floAr/issue-repro
Versions
"node_modules/@coinbase/agentkit": "version": "0.1.1",
🐛 Describe the bug
We are trying to create a new action for agentkit. For the sake of time we were trying to create it in our agent project, which has agentkit as a dependency.
For some reason the CreateAction decorator is really unhappy outside of the agentkit project itself.
Example is here: https://github.com/floAr/ReadyAgentOne/blob/main/agent/superfluid/superfluidStreamActionProvider.ts
I tried and reproduced with the minimal example here https://github.com/coinbase/agentkit/tree/master/typescript/agentkit#creating-an-action-provider
It fails to compile with:
Added a minimal not working sample here: https://github.com/floAr/issue-repro
Versions
"node_modules/@coinbase/agentkit": "version": "0.1.1",