Skip to main content

Microsoft Teams / Bot Framework interface for Agno agents.

Project description

agno-microsoft-teams

Microsoft Teams / Bot Framework interface for Agno agents.

from agno.agent import Agent
from agno_microsoft_teams import Teams
from fastapi import FastAPI

agent = Agent(name="Support")
app = FastAPI()

teams = Teams(
    agent=agent,
    app_id="00000000-0000-0000-0000-000000000000",
    app_password="bot-client-secret",
)

app.include_router(teams.get_router())

Set the Azure Bot messaging endpoint to:

https://<runtime-host>/teams/<app-id>/messages

The interface validates inbound Bot Framework JWTs, strips Teams bot mentions, downloads supported incoming attachments into Agno media, and replies through the Bot Connector API. Slow agent runs emit Teams typing activities before the final reply.

Structured Teams cards can be returned by exposing adaptive_cards or teams_cards on the Agno response or on a structured response.content dict:

response.adaptive_cards = [
    {
        "type": "AdaptiveCard",
        "version": "1.5",
        "body": [{"type": "TextBlock", "text": "Card result"}],
    }
]

The interface sends those as Bot Framework Adaptive Card attachments. It does not parse text into cards or handle card actions yet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agno_microsoft_teams-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agno_microsoft_teams-0.1.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file agno_microsoft_teams-0.1.1.tar.gz.

File metadata

  • Download URL: agno_microsoft_teams-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agno_microsoft_teams-0.1.1.tar.gz
Algorithm Hash digest
SHA256 135c05b06e02d63e09b203202b9f403fc2774f83812a2c7f48655f1222e528e3
MD5 78096701b68e423e29a0309e11bc197a
BLAKE2b-256 afad24377fee5eb8b66376d7cc118407cdb8591a28bd2ec64f01b821e6db9aa9

See more details on using hashes here.

File details

Details for the file agno_microsoft_teams-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agno_microsoft_teams-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agno_microsoft_teams-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1660c60c3dca9f2f05c0de4340ace855859d309665bf6c6bb4ab10ec6952478f
MD5 b5f31d15dfd79ed2f54fcf7e784a0f65
BLAKE2b-256 812ecd600f81cb49a9454c0a72983a2a954c0b0bb0e1b8ac42a3d1e01d9fe08c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page