AlgoVoi payment guardrail capability and tools for AutoGen / ag2
Project description
algovoi-plugin-autogen
AlgoVoi payment guardrail capability and payment function for AutoGen / ag2.
Installation
pip install algovoi-plugin-autogen[autogen]
Components
AlgoVoiGuardrailCapability
A callable that can be registered as a before-tool hook in ag2. Screens the
recipient_address in any tool's input against AlgoVoi compliance/screen and
returns {allow: bool, reason: str, verdict: str}.
from algovoi_plugin_autogen import AlgoVoiGuardrailCapability
guardrail = AlgoVoiGuardrailCapability(api_key="algv_...", fail_open=True)
agent.register_hook("tool_call_before", guardrail)
AlgoVoiPaymentFunction
Function-style payment tool with a JSON schema for ag2 function-calling.
from algovoi_plugin_autogen import AlgoVoiPaymentFunction
pay_fn = AlgoVoiPaymentFunction(api_key="algv_...")
agent.register_function(function_map={"algovoi_pay": pay_fn})
License
Apache-2.0
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 Distribution
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 algovoi_plugin_autogen-0.1.0.tar.gz.
File metadata
- Download URL: algovoi_plugin_autogen-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52dc142f5207bed405caf5ade6594f5453f4b1398b81a27d4b958f4294946e75
|
|
| MD5 |
758415884ccc09ce388f83b4fe43e15c
|
|
| BLAKE2b-256 |
61fab88667efb1c3ffe94828129ce5b20c57a2b5e8d0a164b34aea59939f90ac
|
File details
Details for the file algovoi_plugin_autogen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: algovoi_plugin_autogen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88bee7c066ece990a19ae4fa4eb89b4758fa1ba38e361b01e466ce095d90c5f2
|
|
| MD5 |
86a6798730ab943a99e2df1d76419f37
|
|
| BLAKE2b-256 |
7508fd9e72d7677956e0d4eba0881c81a1689e397439bf37f6859d8b04e5f257
|