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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cocapn_workshop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cocapn_workshop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78001d2d2a70cd63b3ae0392bf5c2d955f7346200778f810eb3ad00893d9c36d
|
|
| MD5 |
b8f1642f7f1f240c325218485cd1b290
|
|
| BLAKE2b-256 |
621831dd8c0f0bd6dc71c605915aebe22abbc248c92b847aa72c5041c8900776
|