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: agent DirectClient is not a type #605

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

odilitime
Copy link
Collaborator

Risks

Low

Background

233 export function createAgent(
                    ~~~~~~~~~~~

src/index.ts:279:63 - error TS2749: 'DirectClient' refers to a value, but is being used as a type here. Did you mean 'typeof DirectClient'?

279 async function startAgent(character: Character, directClient: DirectClient) {
                                                                  ~~~~~~~~~~~~

src/index.ts:329:57 - error TS2749: 'DirectClient' refers to a value, but is being used as a type here. Did you mean 'typeof DirectClient'?

329             await startAgent(character, directClient as DirectClient);
                                                            ~~~~~~~~~~~~

What does this PR do?

Fixes pnpm run dev when sometimes you get the error above.

What kind of change is this?

Bug fixes (non-breaking change which fixes an issue)

Why are we doing this? Any context or related work?

Want dev tools that work as advertised

Documentation changes needed?

My changes do not require a change to the project documentation.

@monilpat
Copy link
Collaborator

LGTM!

@shakkernerd shakkernerd merged commit d6b20c9 into elizaOS:main Nov 26, 2024
2 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.

3 participants