Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return types of createAgent & startAgent #1097

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

BlockJuic3
Copy link
Contributor

Relates to:

Closes #1096

Risks

Low risk. Doesn't have any implications on execution logic

Background

createAgent & startAgent functions are async but their return types aren't wrapped in a Promise

What does this PR do?

Fix the return type of createAgent and startAgent by wrapping the return values into Promises

What kind of change is this?

Bug fix: Typescript type fix

Documentation changes needed?

No

Testing

Where should a reviewer start?

NA

Detailed testing steps

NA

Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@monilpat monilpat changed the base branch from main to develop December 14, 2024 16:04
@monilpat monilpat merged commit e3d6feb into elizaOS:develop Dec 14, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong return type for createAgent and startAgent functions
2 participants