Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

this.prepareRunAgentInput is not a function#3103

Unanswered
messancegid asked this question inQ&A
Discussion options

Hello,

I try to use a useCoAgent via a MFE and I am having the error "this.prepareRunAgentInput is not a function".
I am not a React expert, I try hard with different LLMs and I was unable to get rid of this error.
Can somebody help me?

In the MFE

import {
useCopilotAction,
useCopilotReadable,
useHumanInTheLoop,
useCoAgent as useCoAgentOriginal,
} from "@copilotkit/react-core"

export function useCoAgent(args: CoAgentArgs) {
return useCoAgentOriginal(args);
}

--package.json
{
"name": "ai-client-remote",
"version": "1.0.0",
"scripts": {
"start": "webpack serve --mode development --config webpack.config.js",
"build": "webpack --mode production --config webpack.config.js"
},
"dependencies": {
"@copilotkit/react-core": "1.51.2",
"@copilotkit/react-ui": "1.51.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/preset-react": "^7.23.0",
"@babel/preset-typescript": "^7.23.0",
"babel-loader": "^9.1.0",
"css-loader": "^7.1.2",
"html-webpack-plugin": "^5.5.0",
"style-loader": "^4.0.0",
"typescript": "^5.0.0",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.0",
"webpack-dev-server": "^5.2.2"
}
}

Regards

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@messancegid

[8]ページ先頭

©2009-2026 Movatter.jp