Skip to main content

Slack reference channel adapter for AgentForge

Project description

agentforge-chat-slack

Reference Slack channel adapter for AgentForge (feat-020 v0.2).

Maps message + app_mention events to ChatSession.send, posts a placeholder message, and batches chat.update calls as text chunks stream back from the agent. Slack rate-limits per channel, so true per-token updates aren't practical — the adapter batches every batch_window_s seconds (default 0.5 s).

Exemplar of how to wire any messaging channel to AgentForge (Telegram / Discord / Teams would follow the same shape with their SDKs).

from agentforge_chat_slack import SlackChatAdapter

adapter = SlackChatAdapter(
    bot_token=os.environ["SLACK_BOT_TOKEN"],
    signing_secret=os.environ["SLACK_SIGNING_SECRET"],
    session_factory=lambda channel_id: ChatSession(
        agent=build_agent(),
        session_id=channel_id,
    ),
)
await adapter.start()

Live integration test gated on SLACK_BOT_TOKEN + SLACK_TEST_CHANNEL env vars. Developer-machine only — no free CI Slack workspace.

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

agentforge_chat_slack-0.2.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

agentforge_chat_slack-0.2.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_chat_slack-0.2.4.tar.gz.

File metadata

  • Download URL: agentforge_chat_slack-0.2.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_chat_slack-0.2.4.tar.gz
Algorithm Hash digest
SHA256 9cef706a4c68aeb9126fa57ab990865fd756877d68e669bad8846143fc07c2d7
MD5 b241236e48f0e9f08f8ecf037d869551
BLAKE2b-256 942e7d3ee72c19b79f6ed9a0aa697103791e3c2ab7c66283801111e6afebfaf0

See more details on using hashes here.

File details

Details for the file agentforge_chat_slack-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_chat_slack-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc7736eef03ba0e827f0444470f813004d40c0d78431248838021b46eaff6fe
MD5 5e97a247b42e38547e72a6b5873e3dc8
BLAKE2b-256 b5b1989aa06140780307db8567886a8615bd11a72c6ee38410116022be51544f

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