Skip to content

API Reference parrot.integrations.telegram.crew.agent_card

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.telegram.crew.agent_card

View source

AgentCard and AgentSkill models for TelegramCrewTransport.

These Pydantic models describe an agent's identity, capabilities, and status within a crew. They provide rendering methods for Telegram-formatted announcements and pinned registry lines.

Class AgentCard

Identity and capability descriptor for an agent in the crew.

Fields:

Field Type Default Description
agent_id str Internal agent identifier
agent_name str Human-readable agent name
telegram_username str Telegram bot username (without @)
telegram_user_id int Telegram bot user ID
model str LLM model identifier
skills List[AgentSkill] Agent capabilities
tags List[str] Classification tags
accepts_files List[str] File types the agent can receive
emits_files List[str] File types the agent can produce
status str 'ready' Current status: ready, busy, offline
current_task Optional[str] None Description of current task (when busy)
joined_at datetime Timestamp when agent joined the crew
last_seen datetime Timestamp of last activity

Method AgentCard.to_telegram_text

Render a formatted announcement message for the Telegram group.

to_telegram_text() -> str

Returns: str — Multi-line string with agent name, username, model, skills, and file type information.

Method AgentCard.to_registry_line

Render a compact one-line status for the pinned registry message.

Format: {emoji} @{username} {agent_name} · {current_task}

to_registry_line() -> str

Returns: str — Single-line string with status emoji, username, name, and optional task description.

Class AgentSkill

Describes a single capability of an agent.

Fields:

Field Type Default Description
name str Short skill name
description str Human-readable skill description
input_types List[str] Accepted input types (e.g. text, csv, json)
output_types List[str] Produced output types (e.g. text, chart)
example Optional[str] None Example usage prompt

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally