Skip to main content

Paved SDK

Project description

Paved SDK

PVD SDK for Paved platform (the Firewall for AI Agents). All policy checks and telemetry route through the Paved Platform API (default: https://app.hipaved.com).

Install

pip install pvd

After installing, you can log in to the platform (assuming you have created an account in https://app.hipaved.com):

pvd login

CLI Usage

# Init a starter agent project
pvd init my-agent --template llm

# Build a tarball to deploy
cd my-agent
pvd build . -o my-agent.tar.gz

# Deploy to the platform
pvd deploy my-agent.tar.gz --name my-agent

# List and invoke
pvd list
pvd invoke <agent-id> --payload '{"message": "hello"}'
pvd logs <invocation-id> --follow

SDK Usage

from pvd.sdk import Agent, PolicyDeniedError

agent = Agent(
    agent_id="my-remote-agent",
    policies=["pii_strict"],
)

try:
    text = agent.llm("Summarize our Q3 performance.")
finally:
    agent.complete(result={"ok": True})

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

pvd-0.1.1.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

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

pvd-0.1.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pvd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18800623b170f5b73627648d6425d748b24d25962ffd4309967f96f8f0cdc36b
MD5 c5c5285ef4c8cd0f238297156691af64
BLAKE2b-256 b4ad7037b92c0ee2ce9b80aba77c945e13c2876a9dfd6a99817388e01b65f0da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pvd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a520a9b2566dd926eb6071d6e297f8f43bc3422475cd12f94160961ac188ceff
MD5 65d6056be2d63593197ffbad680f131f
BLAKE2b-256 70481f7e3c1749460f81dbd752f6b5da8df4774a8c0eb3b1fb2c1fede7d3d5a3

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