Metadata-Version: 2.5
Name: eqbuilder
Version: 0.1.0
Summary: Score your AI agent's replies for human-likeness before sending — free trial, then pay-per-score via x402 (USDC on Base, no account, no API key). Includes LangChain and CrewAI tools.
Project-URL: Homepage, https://eqbuilder.dev
Project-URL: Documentation, https://eqbuilder.dev/integrate
Author-email: EqBuilder <jaymarrero2@gmail.com>
License: MIT
Keywords: ai-agents,crewai,eq,human-likeness,langchain,scoring,x402
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Requires-Dist: requests>=2.28
Provides-Extra: all
Requires-Dist: crewai>=0.28; extra == 'all'
Requires-Dist: eth-account>=0.10; extra == 'all'
Requires-Dist: langchain-core>=0.2; extra == 'all'
Provides-Extra: crewai
Requires-Dist: crewai>=0.28; extra == 'crewai'
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.2; extra == 'langchain'
Provides-Extra: payments
Requires-Dist: eth-account>=0.10; extra == 'payments'
Description-Content-Type: text/markdown

# eqbuilder

Score your AI agent's replies for **human-likeness** before sending — and check they **stick to your approved facts**. No account, no API key. 3 free scores, then pay-per-score (~5¢) in USDC on Base via [x402](https://eqbuilder.dev) — the buyer wallet needs **zero gas**, USDC only.

```python
# pip install eqbuilder
from eqbuilder import EqBuilder

eq = EqBuilder()
result = eq.free_score(
    "Sounds good — I'll double-check the invoice and get back to you.",
    delay_seconds=4.2,
    profile="analytical_executive",
)
print(result["eq_score_percentage"], result.get("suggested_prompt_addition"))
```

## LangChain (one line)

```python
# pip install "eqbuilder[langchain]"
from eqbuilder.langchain_tool import get_langchain_tools

tools = get_langchain_tools()  # add wallet_key="0x..." to keep scoring after the free trial
```

## CrewAI

```python
# pip install "eqbuilder[crewai]"
from eqbuilder.crewai_tool import HumanLikenessScoreTool

agent = Agent(role="support", tools=[HumanLikenessScoreTool()], ...)
```

Everything at once: `pip install "eqbuilder[all]"` (payments + LangChain + CrewAI).

## Paid scoring (after the 3 free scores)

```python
# pip install "eqbuilder[payments]"
eq = EqBuilder(wallet_key="0x<private key of a wallet holding USDC on Base>")
result = eq.score("...", delay_seconds=4.2, profile="analytical_executive")
deep   = eq.score("...", delay_seconds=4.2, profile="analytical_executive", tier="deep")
```

Payment is a signed, gasless USDC transfer authorization (EIP-3009) sent in the
`X-PAYMENT` header — the platform's facilitator settles it on-chain. A malformed
request is rejected **before** any money moves.

## Script adherence (paid)

```python
check = eq.script_check(
    reply_text="The plan is $49/mo, see example.com/pricing",
    approved_facts=["Plan price is $29/mo", "Docs: https://docs.example.com"],
)
# flags the invented $49 price and the off-script URL
```

## Improvement loop

```python
def rewrite(text, suggestion):
    return my_llm(f"Rewrite this reply. {suggestion}\n\n{text}")

final = eq.improve("...", 4.2, "analytical_executive", rewrite, max_rounds=3)
```

- 28 personality profiles: `eq.profiles()`
- Pricing: `eq.pricing()`
- Full API & MCP endpoint: https://eqbuilder.dev/integrate
