eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Wrong return type for createAgent and startAgent functions

Open BlockJuic3 opened this issue 1 year ago • 0 comments

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

BlockJuic3 avatar Dec 14 '24 15:12 BlockJuic3