DEV Community

Python

import antigravity

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Detect Prompt Injection Before Your Agent Acts on It

Detect Prompt Injection Before Your Agent Acts on It

Comments
4 min read
Score Your Agent's Responses With a 0.0-1.0 Rubric (No LLM Judge Required)

Score Your Agent's Responses With a 0.0-1.0 Rubric (No LLM Judge Required)

Comments
4 min read
token-budget-py: Thread-Safe Token and USD Caps for Python Agents

token-budget-py: Thread-Safe Token and USD Caps for Python Agents

Comments
5 min read
Build a Metrics Dashboard for Your Python Agent in 50 Lines

Build a Metrics Dashboard for Your Python Agent in 50 Lines

Comments
6 min read
The Agent That Retried Five Times Over a String: tool-arg-coerce-py

The Agent That Retried Five Times Over a String: tool-arg-coerce-py

Comments
5 min read
A/B Test Your Prompts Without a Framework

A/B Test Your Prompts Without a Framework

Comments
5 min read
Tool Call Deduplication: Stop Your Agent from Doing the Same Thing Twice

Tool Call Deduplication: Stop Your Agent from Doing the Same Thing Twice

Comments
6 min read
PII in Your Prompt Logs Is a Liability: Redact Before You Send

PII in Your Prompt Logs Is a Liability: Redact Before You Send

Comments
5 min read
100 Users, One LLM Call: Single-Flight Deduplication with llm-batch-coalesce

100 Users, One LLM Call: Single-Flight Deduplication with llm-batch-coalesce

Comments
6 min read
Two Copies of the Tool List, One Agent That Broke: agent-fn-registry

Two Copies of the Tool List, One Agent That Broke: agent-fn-registry

Comments
7 min read
Session-Scoped Tool Call Deduplication: Stop Your Agent From Doing the Same Thing Twice

Session-Scoped Tool Call Deduplication: Stop Your Agent From Doing the Same Thing Twice

Comments
4 min read
Defending Against Prompt Injection in Python Agents

Defending Against Prompt Injection in Python Agents

Comments
6 min read
Validate LLM Output Before It Reaches Your Users

Validate LLM Output Before It Reaches Your Users

Comments
5 min read
When Your LLM Provider Goes Down Mid-Demo: llm-fallback-chain

When Your LLM Provider Goes Down Mid-Demo: llm-fallback-chain

Comments
6 min read
Sanitize Your LLM Message Lists Before Every API Call

Sanitize Your LLM Message Lists Before Every API Call

Comments
3 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.