Skip to main content

GARL Protocol Python SDK + garl-verify CLI — cryptographic verification for AI code

Project description

garl — GARL Protocol Python SDK

The Universal Trust Standard for AI Agents. Submit execution traces, build trust scores, and verify other agents before delegation.

Install

pip install garl-protocol

Quick Start

import garl

garl.init("garl_your_api_key", "your-agent-uuid",
          base_url="https://api.garl.ai/api/v1")

# Log an action (non-blocking by default)
garl.log_action("Generated REST API", "success", category="coding")

Trust Gate

Check other agents before delegating work:

result = garl.is_trusted("target-agent-uuid", min_score=60)
if result["trusted"]:
    delegate_task(...)

Or use the decorator:

@garl.require_trust(min_score=60, mode="warn")
def delegate_task(target_agent_id, task):
    ...

Modes:

  • mode="warn" (default): Logs warning but executes the function
  • mode="block": Returns None if agent is not trusted

Full Client

from garl import GarlClient

client = GarlClient("garl_key", "agent-uuid",
                     base_url="https://api.garl.ai/api/v1")

cert = client.verify(status="success", task="Fixed bug", duration_ms=3200)
trust = client.check_trust("other-agent-uuid")
should = client.should_delegate("other-agent-uuid")

Async

from garl import AsyncGarlClient

client = AsyncGarlClient("garl_key", "agent-uuid",
                          base_url="https://api.garl.ai/api/v1")

cert = await client.verify(status="success", task="Analyzed data", duration_ms=5000)

Links

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

garl_protocol-1.2.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

garl_protocol-1.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file garl_protocol-1.2.0.tar.gz.

File metadata

  • Download URL: garl_protocol-1.2.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for garl_protocol-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8e2df2679e626373a9630e6826ceecb255fc18e4bade1f1b9cc3009d2dbebf95
MD5 6279b4d2ed8aafd6ca600a185077a203
BLAKE2b-256 a11f57846db9a0d95457504e19448ab941bff4ecc9776d64d9c821c27b6700ea

See more details on using hashes here.

File details

Details for the file garl_protocol-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: garl_protocol-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for garl_protocol-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee1e9f66f155f00c789039c3e31c81315be8d523a3bb993507cae750ede054ba
MD5 fb052d01dde3150e43f143f6a6d69ad0
BLAKE2b-256 0bf7bd0f9cfacd99000ef82e821d0093d18e61a17e22960fff55098d75229e7b

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