Skip to main content

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


Download files

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

Source Distribution

algovoi_plugin_autogen-0.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

algovoi_plugin_autogen-0.1.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_plugin_autogen-0.1.1.tar.gz.

File metadata

  • Download URL: algovoi_plugin_autogen-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_plugin_autogen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0aee8c782828a8e805b56d17037cecad89ac94ca3df3010306f05901ed00fb25
MD5 30ee3ca74d9dafc78c962920308ca904
BLAKE2b-256 472a5136ec39fdb1944a10f89fba2cc7fd512b5e4ea6747c5ed478737011f0a2

See more details on using hashes here.

File details

Details for the file algovoi_plugin_autogen-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_plugin_autogen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14ad9e1d7046bac54f5311681bd8042b1806ce8121d4ff143033706f139a07d7
MD5 9f2d3345b5eafff4edc1a90418bfb93b
BLAKE2b-256 4b8b2de38e1f72a065ca7d2d8d10ec48eb4eb82d84cae315dbb21d682607cf4a

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