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.2.tar.gz (14.4 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.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algovoi_plugin_autogen-0.1.2.tar.gz
  • Upload date:
  • Size: 14.4 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.2.tar.gz
Algorithm Hash digest
SHA256 864f000ed94ce9a7cbc47b7e92ddf81c43fbdee59901950b6c776d7fd8779507
MD5 6c07d50b8775c40e2937696d67513fce
BLAKE2b-256 fc281240dbe35f0b555eaab64dd7a4a6c9b52d1167cfdb0b7b2068a7db46baee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for algovoi_plugin_autogen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebb9ae6f035d1b99cbfbb40d1177547afa2f56387c67bb98e7d1bb92011b9aba
MD5 7e8e0d8e160c193f85354451b5473a25
BLAKE2b-256 2f27c4489ec595587b096bd0481a5b861e99fdb65ca5e292dfc8a029793be50b

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