We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb4911 commit cc8fffeCopy full SHA for cc8fffe
typescript-sdk/create-integration.ts
@@ -147,11 +147,15 @@ if (hasServer) {
147
148
let agentsContent = fs.readFileSync(agentsPath, "utf8");
149
150
+ // Add import statement at the top
151
+ const importStatement = `import { ${agentClassName} } from "@ag-ui/${integrationName}";\n`;
152
+ agentsContent = importStatement + agentsContent;
153
+
154
const newAgentIntegration = ` {
155
id: "${integrationName}",
156
agents: async () => {
157
return {
- agentic_chat: new ${agentClassName}(),
158
+ agentic_chat: new ${agentClassName}({ url: "http://localhost:8000" }),
159
}
160
},
161
},\n`;
0 commit comments