Skip to main content

GARL Protocol Python SDK — Universal Trust Standard for AI Agents

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: garl_protocol-1.1.0.tar.gz
  • Upload date:
  • Size: 10.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 49f9a83fd36bf8101cae221e48af50e3080239ac9db7eea7710c7d940370070c
MD5 d6ba3fd7d9efa937dd7853d9ab4a5f0c
BLAKE2b-256 468db341d481de68e517021a14e7b5e71a803ad7a5aaabe1bdc67971f2adef90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: garl_protocol-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c2d15f8ac2b21fb99d40a9487bd344252a2d08d51c3769c1cb3178089d2e8a
MD5 34639866ad9daa68f51e595ceb797766
BLAKE2b-256 b9a37da2a7ad8600f3346689729de6aebeee85b865f04345a7b643a7337b0410

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