Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:ANative Lab EvoAgentX CommunicationToolkits

From Leeroopedia
Knowledge Sources
Domains Tools, Communication
Last Updated 2026-10-21 00:00 GMT

Overview

Concrete tools for Gmail email management, Telegram messaging, and Google Maps location services.

Description

EvoAgentX provides communication and location toolkits:

  • GmailToolkit — Comprehensive Gmail integration using the Gmail API with OAuth authentication. Provides message retrieval, thread reading, draft creation/update/sending. Supports email automation workflows.
  • TelegramToolkit — Uses the `Telethon` library for Telegram API integration. Provides message retrieval, search, sending, scheduling, chat management, and file operations.
  • GoogleMapsToolkit — Google Maps Platform integration. Provides geocoding (address↔coordinates), Places API (search places), Routes API (directions/distance), and Time Zone API.
  • RSSToolkit — RSS feed parsing using `feedparser`. Extracts feed entries with title, link, published date, and content. Supports feed URL validation and entry filtering.
  • BasicInformationToolkit — Company basic information retrieval via API. Creates `APITool` instances for fetching company information (name, address, description, etc.).

Usage

  • Email automation: Use `GmailToolkit` for email management workflows.
  • Messaging: Use `TelegramToolkit` for Telegram communication automation.
  • Location services: Use `GoogleMapsToolkit` for mapping, routing, and place search.
  • News monitoring: Use `RSSToolkit` for RSS feed aggregation.
  • Company research: Use `BasicInformationToolkit` for company information retrieval.

Code Reference

Source Location

Signature

class GmailToolkit(Toolkit):
    def __init__(self, credentials_path: str = None, ...)
    # Tools: get_messages, read_thread, create_draft, send_email, ...

class TelegramToolkit(Toolkit):
    def __init__(self, api_id: str, api_hash: str, ...)
    # Tools: get_messages, search_messages, send_message, ...

class GoogleMapsToolkit(Toolkit):
    def __init__(self, api_key: str = None, ...)
    # Tools: geocode, search_places, get_directions, get_timezone

class RSSToolkit(Toolkit):
    def __init__(self, ...)
    # Tools: parse_feed, get_entries, filter_by_date

class BasicInformationToolkit(Toolkit):
    def __init__(self, ...)
    # Tools: get_company_info, get_company_address, get_company_description

Import

from evoagentx.tools.gmail_tools import GmailToolkit
from evoagentx.tools.telegram_tools import TelegramToolkit
from evoagentx.tools.google_maps_tool import GoogleMapsToolkit
from evoagentx.tools.rss_feed import RSSToolkit
from evoagentx.tools.basic_information_tool import BasicInformationToolkit

I/O Contract

Inputs

Name Type Required Description
credentials str Yes (Gmail) OAuth credentials path
api_id/api_hash str Yes (Telegram) Telegram API credentials
api_key str Yes (Maps) Google Maps API key
feed_url str Yes (RSS) RSS feed URL

Outputs

Name Type Description
get_messages returns List[dict] Email/message entries
geocode returns dict Coordinates or address
parse_feed returns List[dict] RSS feed entries

Usage Examples

Gmail Agent

from evoagentx.tools.gmail_tools import GmailToolkit
from evoagentx.agents.customize_agent import CustomizeAgent
from evoagentx.models.model_configs import OpenAILLMConfig

agent = CustomizeAgent(
    name="EmailAgent",
    description="Read and summarize emails",
    prompt="Read the latest emails and provide a summary.",
    llm_config=OpenAILLMConfig(model="gpt-4o-mini", openai_key="sk-..."),
    inputs=[],
    outputs=[{"name": "summary", "type": "str", "description": "Email summary"}],
    parse_mode="title",
    tools=[GmailToolkit(credentials_path="credentials.json")],
)

Google Maps Agent

from evoagentx.tools.google_maps_tool import GoogleMapsToolkit

toolkit = GoogleMapsToolkit(api_key="your-maps-key")
# Attach to an agent for location services

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment