Skip to main content

llama-index tools verifly integration

Project description

Verifly Tool

Verifly is an agent-native email verification API. It tells you whether an email address is real and safe to send to — checking deliverability (syntax, domain, MX, SMTP) and risk flags (disposable, role, catch-all, free provider) — and returns a verdict with a send / do-not-send recommendation.

This tool lets a LlamaIndex agent verify an address before adding it to a list, confirming a signup, or firing off a message.

Installation

pip install llama-index-tools-verifly

Getting an API key

Create an account and grab a key at verifly.email. Verifly is built for autonomous workflows, so an agent can also self-onboard for a key (with free starter credits) and no human in the loop via the autonomous registration endpoint. Set it as an environment variable:

export VERIFLY_API_KEY="vf_..."

Usage

from llama_index.tools.verifly import VeriflyToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

verifly_tool = VeriflyToolSpec(api_key="vf_...")  # or rely on VERIFLY_API_KEY

agent = FunctionAgent(
    tools=verifly_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4o"),
)

await agent.run("Is lead@example.com a deliverable email address?")

Call it directly:

from llama_index.tools.verifly import VeriflyToolSpec

verifly_tool = VeriflyToolSpec()  # reads VERIFLY_API_KEY from the environment
doc = verifly_tool.verify_email("lead@example.com")

print(doc.text)            # e.g. "lead@example.com: deliverable - recommendation: send"
print(doc.metadata)        # full structured result: is_valid, result, reason, details, ...

Available Functions

verify_email: Verify a single email address. Returns a Document whose text is a short human-readable verdict and whose metadata holds the full structured Verifly result (is_valid, result, reason, details, recommendation, credits).

This loader is designed to be used as a Tool in an Agent.

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_verifly-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

llama_index_tools_verifly-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_verifly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abfa9c83cffadc0b773fb7a3bff0170ff98b2062f14cae47772def1ff13adabd
MD5 013d5c4429c3c253fa12a95153e5daf1
BLAKE2b-256 da1729ec38588a48970b16deaae2b0993d052a329d141a95298fc6ad389caaa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_verifly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63fcbb2c0ff473aa14f61ed12b708f5584cd0574ff1409c0d1456f433e0721b0
MD5 cf4e1ac7a3dfb12f80cbb7a027f02caf
BLAKE2b-256 57339dbc1a7af30aaa627493abf7dd3feb67b5673a6308723f235f39525c2337

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