Skip to main content

Workflow node types for aceteam-workflow-engine

Project description

aceteam-nodes

PyPI version License: MIT Python 3.12+

A bundle of workflow node types for aceteam-workflow-engine: LLM text generation, HTTP requests, authenticated browser fetch, and XPath extraction.

This is a node-source package, not a runner. It ships no CLI and no execution engine — it advertises its nodes through the aceteam_workflow_engine.nodes entry-point group, and an operator mounts them into an engine with wengine install aceteam-nodes. The engine then executes them.

Install into a workflow engine

Nodes are discovered through entry points and mounted by the engine operator with the wengine CLI (which drives uv under the hood). From an engine project:

# Create an engine project if you don't have one yet
wengine init  # creates engine.yaml + a pyproject.toml to install into

# Mount every node this package exposes
wengine install aceteam-nodes

# ...or mount only specific nodes
wengine install aceteam-nodes --only LLM --only APICall

wengine install runs uv add aceteam-nodes and records each node in the operator-controlled name map (engine.yaml). It reads the entry-point table from package metadata — listed below — without importing the modules. Nodes whose entry declares an extra (e.g. LLM [llm]) pull that optional dependency automatically, so wengine install aceteam-nodes --only LLM installs aceteam-nodes[llm].

Workflows then reference these nodes by their type discriminator (LLM, APICall, …). See the engine's node-distribution docs for the full install/uninstall surface and the trust model.

Direct install

To add the package (and its optional deps) to an environment directly:

pip install aceteam-nodes                  # core nodes only
pip install "aceteam-nodes[llm]"           # + LLM (aceteam-aep)
pip install "aceteam-nodes[browser-fetch]" # + BrowserFetch (Playwright)
pip install "aceteam-nodes[xpath-extract]" # + XPathExtract (lxml)
Using uv
uv add aceteam-nodes                  # core nodes only
uv add "aceteam-nodes[llm]"           # + LLM (aceteam-aep)
uv add "aceteam-nodes[browser-fetch]" # + BrowserFetch (Playwright)
uv add "aceteam-nodes[xpath-extract]" # + XPathExtract (lxml)

Available Nodes

Node Extra Description
LLM llm AI text generation via aceteam-aep (OpenAI, Anthropic, Google, xAI, Ollama)
APICall HTTP requests with Jinja templating
Shell Run shell commands and capture stdout/stderr (trusted engines only)
BrowserFetch browser-fetch Authenticated web fetch via Playwright
DiscordBotInfo discord-bot-info Return the authenticated Discord bot's ID and username
DiscordListChannels discord-list-channels List channels in a Discord server
DiscordReadMessages discord-read-messages Fetch recent messages from a channel (Message Content intent required)
DiscordSendMessage discord-send Send a message to a Discord channel
SlackListChannels slack-list-channels List workspace channels via conversations.list
SlackReadMessages slack-read-messages Fetch channel history via conversations.history
SlackSearchMessages slack-search-messages Search workspace messages (requires SLACK_USER_TOKEN)
SlackSendMessage slack-send Send a message via Slack Web API
TelegramBotInfo telegram-bot-info Return the authenticated Telegram bot's ID and username
TelegramListChats telegram-list-chats Look up metadata for a single chat via getChat
TelegramReadMessages telegram-read-messages Fetch recent updates via getUpdates (incompatible with webhooks)
TelegramSendMessage telegram-send Send a message via Telegram Bot API
XPathExtract xpath-extract XPath extraction over HTML/XML

Each node needing a heavy/optional dependency has one extra named after the node (llm, browser-fetch, xpath-extract), so aceteam-nodes[browser-fetch] reads as "BrowserFetch is installed." The APICall node needs no extra.

Browser profile setup

BrowserFetch drives a real Chromium profile so it can fetch authenticated pages. After installing the browser-fetch extra and Playwright's browser binaries, create the profile interactively:

# After: pip install "aceteam-nodes[browser-fetch]" && playwright install chromium
ace-browser-setup
# equivalent: uv run python scripts/browser_setup.py

Configuration

LLM provider credentials are read from the environment:

export OPENAI_API_KEY=sk-...
# or
export ANTHROPIC_API_KEY=sk-ant-...
export DISCORD_BOT_TOKEN=...   # Discord send/read nodes
export SLACK_BOT_TOKEN=...     # Slack send/read/list nodes
export SLACK_USER_TOKEN=...    # Slack search node (user token, xoxp-...)
export TELEGRAM_BOT_TOKEN=...  # Telegram send/read nodes

Development

# Setup (installs project + dev deps: pyright, pytest, ruff, aceteam-aep, playwright, lxml)
uv sync

# Test
uv run pytest
uv run pytest -x                   # stop on first failure

# Lint & format
uv run ruff check && uv run ruff format

# Type check
uv run pyright

# Build
uv build

# Release
scripts/release.sh -v vX.Y.Z --dry-run   # preview
scripts/release.sh -v vX.Y.Z -y          # publish to PyPI + GitHub

Adding a node

Add three things in lockstep:

  1. The node class in src/aceteam_nodes/nodes/ (with its TYPE_INFO).
  2. The export in nodes/__init__.py.
  3. The export in __init__.py.
  4. The entry-point line under [project.entry-points."aceteam_workflow_engine.nodes"] in pyproject.toml (append [extra_dependency_name] if it needs an optional dependency).

Related

  • Workflow Engine — the DAG execution engine that discovers and runs these nodes
  • aceteam-aep — multi-provider LLM abstraction used by the LLM node

License

MIT

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

aceteam_nodes-0.7.1.tar.gz (160.3 kB view details)

Uploaded Source

Built Distribution

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

aceteam_nodes-0.7.1-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file aceteam_nodes-0.7.1.tar.gz.

File metadata

  • Download URL: aceteam_nodes-0.7.1.tar.gz
  • Upload date:
  • Size: 160.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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":null}

File hashes

Hashes for aceteam_nodes-0.7.1.tar.gz
Algorithm Hash digest
SHA256 295df29b206c2832a8f2b5ab3f7e754ea70f691a099f6cd7da661942141b9b33
MD5 a4e3181a7fcea1570dce40b5e36f23b0
BLAKE2b-256 dc68281c15fa321f7f5fa05f8e77427de03adc55fae634eb667d407851b1215a

See more details on using hashes here.

File details

Details for the file aceteam_nodes-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: aceteam_nodes-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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":null}

File hashes

Hashes for aceteam_nodes-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ca88ad2488a56f14388b50373ee68ad805f7fab2f02b20d114662b7031aaeec
MD5 cdc708a85dfacd690521cc10e30249b1
BLAKE2b-256 61b79db07779359f4f0cf6a6c72642d2a7e4bc92ad311b85c110cb4b5687d2da

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