Skip to main content

llama-index tools chronoverify integration

Project description

LlamaIndex Tools Integration: ChronoVerify

Verify when a photo was taken and its provenance from a LlamaIndex agent.

ChronoVerify checks an image for C2PA Content Credentials, EXIF capture metadata, and pixel-level consistency, then returns a structured verdict (provenance_confirmed, consistent, inconclusive, metadata_anomaly, or manipulation_indicated) with a confidence score from 0 to 100, the capture time, capture device, and capture location when available, and file hashes.

ChronoVerify validates provenance. It is not a deepfake or AI-generation detector. Treat results as investigative triage, not proof.

Installation

pip install llama-index-tools-chronoverify

API key

The tool works without an API key on a free, rate limited keyless tier. For metered use, get a free API key:

curl -X POST https://chronoverify.com/v1/keys/free -d "email=you@example.com"

Set it as an environment variable:

export CHRONOVERIFY_API_KEY=cv_live_...

Usage

from llama_index.tools.chronoverify import ChronoVerifyToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = ChronoVerifyToolSpec()
# or with a key: ChronoVerifyToolSpec(api_key="cv_live_...")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(
    await agent.run(
        "When was the photo at https://example.com/photo.jpg taken, "
        "and does it carry valid provenance?"
    )
)

Direct call without an agent:

result = tool_spec.verify_image_provenance(url="https://example.com/photo.jpg")
# or from a local file:
result = tool_spec.verify_image_provenance(file_path="/path/to/photo.jpg")

print(result["verdict"], result["confidence"])

Available functions

  • verify_image_provenance: Verify when a photo was taken and its provenance. Accepts exactly one of url (a public image URL) or file_path (a local image file to upload). Returns the API response as a dict with the verdict, confidence, capture details, C2PA validation results, and integrity hashes.

API reference

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

llama_index_tools_chronoverify-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llama_index_tools_chronoverify-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_chronoverify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b587f11d8b4cbfcb76e75aee460753f60fd0828b99abfa080e2d8412a5081315
MD5 b153daabe63794e2dcf39d473d910cec
BLAKE2b-256 af7ae12c900bdbccf458571a8df53ce9d46b28945cd93ccd305c0a55d12a00d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_chronoverify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f99de46110a320a28476275c70c384919de224b489441428a1792a920d225f06
MD5 726564e5c6a782a2aca25208b192babe
BLAKE2b-256 d1b03370fa80522e1d28b28d773c1e274a8e6aee96467cb7c899565d1145537e

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