What needs to be done
Add an example showing how to use AVP trust tools with PydanticAI. PydanticAI is a popular agent framework by the Pydantic team — we don't have an example for it yet.
Template to follow
Use examples/openai_example.py as the pattern:
- Register an agent on AVP
- Define AVP tools as PydanticAI tools
- Agent checks reputation before acting
- Log result as attestation
Where to put it
examples/pydantic_ai_example.py
Key AVP methods to use
from agentveil import AVPAgent
agent = AVPAgent.create("https://agentveil.dev", name="pydantic_agent")
agent.register(display_name="PydanticAI Agent", capabilities=["analysis"], provider="openai")
agent.get_reputation(did)
agent.can_trust(did, min_tier="basic")
agent.attest(to_did=did, outcome="positive", context="analysis_task")
Prerequisites
pip install agentveil pydantic-ai
Reference
What needs to be done
Add an example showing how to use AVP trust tools with PydanticAI. PydanticAI is a popular agent framework by the Pydantic team — we don't have an example for it yet.
Template to follow
Use
examples/openai_example.pyas the pattern:Where to put it
examples/pydantic_ai_example.pyKey AVP methods to use
Prerequisites
Reference
examples/openai_example.py