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.2.tar.gz (17.8 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.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agno_microsoft_teams-0.1.2.tar.gz
  • Upload date:
  • Size: 17.8 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.2.tar.gz
Algorithm Hash digest
SHA256 0f5c1f0b970534c7ad6b2760099f27acf56f361675f7875f34e59e57dce75854
MD5 1899ef3be2933a4d859bb21d1df8fbf3
BLAKE2b-256 453e6fc0d1eca0716d227d132a3cd1497e2d99d5ef490b39558609815e5c39b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agno_microsoft_teams-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 daa577e6f2ace81f8700e380399cfa90056b21f6ca9fe3f22ab84e4aeda90d18
MD5 86ea07eea5a43e149cbd3c3cb78f8366
BLAKE2b-256 4cdeed83062b6642d2d1d4c2ebc600553674a02111cfd5de493a2e9a13d47b78

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