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.3.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.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_chat_slack-0.2.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_chat_slack-0.2.3.tar.gz
Algorithm Hash digest
SHA256 c425b01adfe80ab7169e0e069d2dbedf31d2be999e0148ad5440d42f29ac24c4
MD5 6c5ea4542f988ded76d394b434baaa98
BLAKE2b-256 ec6b31d58e7d88e110152636a525d90c5dd982afb16225992d8954f199990fac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentforge_chat_slack-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_chat_slack-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e19645af0d76ae355e5ad5be9dfba7834583357fe3d14e439f2dc6463f873296
MD5 1d9c566f54f76bfb293f83c9112b0b20
BLAKE2b-256 39a2f36aea19defa1d472fb7901ec81ba458f9b5fa39f210ede2e2fb1bd45285

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