Skip to main content

Tool use and plugin architecture — register, compose, sandbox. An agent without tools is just a chatbot.

Project description

workshop

Tool use, plugin architecture, and sandboxed execution. An agent without tools is just a chatbot.

Usage

from workshop import Workshop, Tool

ws = Workshop()
ws.register(Tool(name="search", handler=lambda q: f"results for {q}"))
ws.register(Tool(name="upper", handler=lambda input: input.upper()))

result = ws.use("search", q="PLATO rooms")
print(result.output)  # "results for PLATO rooms"

# Compose tools into pipelines
pipeline = ws.compose(["search", "upper"])
results = pipeline.execute("hello")

Zero deps. pip install workshop

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cocapn_workshop-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file cocapn_workshop-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cocapn_workshop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78001d2d2a70cd63b3ae0392bf5c2d955f7346200778f810eb3ad00893d9c36d
MD5 b8f1642f7f1f240c325218485cd1b290
BLAKE2b-256 621831dd8c0f0bd6dc71c605915aebe22abbc248c92b847aa72c5041c8900776

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