DEV Community

Python

import antigravity

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Per-Tool Timeouts: Stop One Slow API From Hanging Your Agent

Per-Tool Timeouts: Stop One Slow API From Hanging Your Agent

Comments
4 min read
Composable Output Guardrails: Filter Agent Responses Before They Reach Users

Composable Output Guardrails: Filter Agent Responses Before They Reach Users

Comments
4 min read
Self-Impose Rate Limits on Your Agent Before Your Provider Does

Self-Impose Rate Limits on Your Agent Before Your Provider Does

Comments
6 min read
Strip Thinking Tags From LLM Output Before Sending to Users

Strip Thinking Tags From LLM Output Before Sending to Users

Comments
4 min read
Persist Your Agent's Conversation History Without Rolling Your Own JSON

Persist Your Agent's Conversation History Without Rolling Your Own JSON

Comments
4 min read
When the Model Says 'ASCENDING' and Your Enum Wants 'asc': tool-arg-fuzzy

When the Model Says 'ASCENDING' and Your Enum Wants 'asc': tool-arg-fuzzy

Comments
5 min read
VCR-Style Record/Replay for LLM Tests: Make Your Agent Tests Deterministic and Free

VCR-Style Record/Replay for LLM Tests: Make Your Agent Tests Deterministic and Free

Comments
4 min read
The Simplest Stop Condition: A Hard Cap on Agent Loop Iterations

The Simplest Stop Condition: A Hard Cap on Agent Loop Iterations

Comments
3 min read
Redact API Keys and Tokens From LLM Payloads Before They Leave Your Network

Redact API Keys and Tokens From LLM Payloads Before They Leave Your Network

Comments
4 min read
Check Token Count Before You Hit the 413

Check Token Count Before You Hit the 413

Comments
5 min read
Stop Branching on Error Strings: A Closed Enum for Tool Exceptions

Stop Branching on Error Strings: A Closed Enum for Tool Exceptions

Comments
4 min read
Circuit Breaker for LLM Calls: Stop Hammering a Provider That Is Already Down

Circuit Breaker for LLM Calls: Stop Hammering a Provider That Is Already Down

Comments
4 min read
Multi-Provider Streaming Chunk Reassembly: Collect an LLM Stream Into a Complete Response

Multi-Provider Streaming Chunk Reassembly: Collect an LLM Stream Into a Complete Response

Comments
4 min read
In-Process LRU Cache for LLM Calls: Stop Paying for the Same Response Twice

In-Process LRU Cache for LLM Calls: Stop Paying for the Same Response Twice

Comments
4 min read
tool-arg-coerce-py: Coerce LLM Tool Args to Expected Types Before They Break Things

tool-arg-coerce-py: Coerce LLM Tool Args to Expected Types Before They Break Things

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