eliza
eliza copied to clipboard
Wrong return type for createAgent and startAgent functions
Describe the bug
The createAgent and startAgent functions of the agent package are async, but their response type aren't wrapped in a Promise
To Reproduce Let the LSP do its job
Expected behavior To not have an error on the return type of the two functions
Additional context
Declaration of createAgent
https://github.com/ai16z/eliza/blob/67f85fb073a188676c580cffcc36f023e1cc78c1/agent/src/index.ts#L406
Declaration of startAgent
https://github.com/ai16z/eliza/blob/67f85fb073a188676c580cffcc36f023e1cc78c1/agent/src/index.ts#L515