eigent icon indicating copy to clipboard operation
eigent copied to clipboard

[Question] Using Agents definitions from CAMEL.agents directly in eigent UI

Open sureshtmca opened this issue 9 months ago • 3 comments

Questions

I see CAMEL project has variety of agents defined like 'from camel.agents import KnowledgeGraphAgent', can't i directly use this knowledgegraphAgent in eigent ai as a worker??

*** Should i do this through https://github.com/eigent-ai/eigent/tree/main/backend/app/agent/factory , directly ?? can't i use 'add worker option in eigent' ?

sureshtmca avatar Feb 18 '26 11:02 sureshtmca

Good question, @sureshtmca

Yes, CAMEL provides several predefined agents (e.g. KnowledgeGraphAgent), but you can’t directly plug a KnowledgeGraphAgent instance into Eigent as a worker without going through Eigent’s agent abstraction layer.

Eigent workers are expected to follow Eigent’s internal worker/agent interface and lifecycle. So if you want to use KnowledgeGraphAgent, you’ll need to wrap or adapt it to conform to Eigent’s worker structure.

Regarding the second point: Should I do this through backend/app/agent/factory directly? Can't I just add a worker option in Eigent? The correct approach is to integrate it through the factory layer (backend/app/agent/factory). That’s where Eigent instantiates and registers supported agent types. Simply “adding a worker option” in the UI/config won’t be enough unless the backend factory knows how to construct and wire that agent.

So the recommended approach would be:

  • Create a wrapper class around KnowledgeGraphAgent that conforms to Eigent’s worker interface.
  • Register that wrapper in the agent factory.
  • Expose it as a selectable worker option if needed. This keeps the integration clean and aligned with Eigent’s architecture instead of bypassing the factory pattern. Let me know if you'd like help drafting the wrapper structure.

dataCenter430 avatar Feb 18 '26 14:02 dataCenter430

@sureshtmca thanks for bring this out, it is a good suggestion. We will build certain CAMEL workers/tools into 'Skills.' like KnowledgeGraph skills.

And these will be made available in EIgent as 'Example Skills' within the Eigent Skills settings.

Image Image

Pakchoioioi avatar Feb 18 '26 20:02 Pakchoioioi

In advisory consultant capacity, i constantly push or recommend two open source projects to my internal and external clients. This is one among the two. Thanks...

sureshtmca avatar Feb 20 '26 03:02 sureshtmca