Examples

This section contains examples demonstrating how to use the AgentConnect framework.

Note

The example code is available in the examples/ directory of the repository. You can run these examples directly after installing AgentConnect with the demo dependencies: poetry install --with demo

The examples cover a range of use cases from basic to advanced scenarios:

  • Basic Example: Start here to learn how to create simple agents and send messages

  • Custom Agent Example: Learn how to extend the base agent classes

  • Custom Provider Example: Connect custom AI providers to the framework

  • Multi-Agent Example: Set up decentralized communication between multiple agents

  • Advanced Agent Example: Build sophisticated agents with custom tools, workflows, and LangChain/LangGraph integration

  • Telegram Agent Example: Create a Telegram AI Agent with multi-agent capabilities for natural language interactions