You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shakkernerd
changed the title
Wrong return type for createAgente and startAgent functions
Wrong return type for createAgent and startAgent functions
Dec 14, 2024
Describe the bug
The
createAgent
andstartAgent
functions of the agent package are async, but their response type aren't wrapped in a PromiseTo 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
The text was updated successfully, but these errors were encountered: