Submit an agent output to Pecta’s cloud gate engine. Get an instant pass/fail verdict, per-gate results, and an updated reputation score in one response.
POST /v1/evaluate runs Pecta’s gate suite against a single agent output on Pecta’s servers. This is the simplest way to add quality gates when you cannot install the @pecta/core SDK in-process — for example from a Python, Go, or Java backend. Expect 50–100 ms round-trip latency because gates execute server-side.The cloud engine runs three default gate categories — filesystem safety, PII detection, and content safety — in parallel with a 50 ms timeout budget. Each gate returns its own pass/fail result, and the overall passed field is true only when every gate passes.After evaluation, Pecta updates the agent’s rolling reputation window (last 500 evals) and returns the latest score in the same response.
Unique identifier for the agent being evaluated. Must be between 1 and 200 characters. Pecta auto-creates an agent record on the first evaluation — no prior registration needed.
The input that was passed to the agent or tool. Pecta does not store this value — it is used only within the gate evaluation and then discarded. Send null or omit the field if you do not want to include it.
How long the agent took to produce its output, in milliseconds. Maximum 60000. Used by the latency gate and to compute the reputation latency score component.
0–1000 score. Computed as (pass_rate × 400) + (latency_score × 250) + (streak × 200) + (volume × 150). Returns 0 until the agent has at least one evaluation on record.