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

Uploaded Python 3

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

Hashes for algovoi_plugin_autogen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52dc142f5207bed405caf5ade6594f5453f4b1398b81a27d4b958f4294946e75
MD5 758415884ccc09ce388f83b4fe43e15c
BLAKE2b-256 61fab88667efb1c3ffe94828129ce5b20c57a2b5e8d0a164b34aea59939f90ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for algovoi_plugin_autogen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88bee7c066ece990a19ae4fa4eb89b4758fa1ba38e361b01e466ce095d90c5f2
MD5 86a6798730ab943a99e2df1d76419f37
BLAKE2b-256 7508fd9e72d7677956e0d4eba0881c81a1689e397439bf37f6859d8b04e5f257

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