DEV Community

Artificial Intelligence

Artificial intelligence leverages computers and machines to mimic the problem-solving and decision-making capabilities found in humans and in nature.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
claude-cost: Cache-Aware Claude Cost Calculator for Rust (Anthropic API + Bedrock)

claude-cost: Cache-Aware Claude Cost Calculator for Rust (Anthropic API + Bedrock)

Comments
4 min read
LLM Jury: Get a Better Answer by Asking Multiple Models to Vote

LLM Jury: Get a Better Answer by Asking Multiple Models to Vote

Comments
4 min read
Declarative Tool Prerequisites: Enforce Tool Ordering Before the Agent Calls in the Wrong Order

Declarative Tool Prerequisites: Enforce Tool Ordering Before the Agent Calls in the Wrong Order

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

Check Token Count Before You Hit the 413

Comments
5 min read
In-Process Pub/Sub for Agent Events: Decouple Your Observability From Your Logic

In-Process Pub/Sub for Agent Events: Decouple Your Observability From Your Logic

Comments
4 min read
Fill Missing Tool Args From Schema Defaults: Stop Your Agent From Omitting Optional Parameters

Fill Missing Tool Args From Schema Defaults: Stop Your Agent From Omitting Optional Parameters

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
agent-message-window: Slide Your Context Window Without Dropping Tool Calls

agent-message-window: Slide Your Context Window Without Dropping Tool Calls

Comments
5 min read
Rust: Check If Your Payload Fits a Model's Context Window Before You Send It

Rust: Check If Your Payload Fits a Model's Context Window Before You Send It

Comments
4 min read
Build Anthropic Content Blocks Without Wrestling With Dicts

Build Anthropic Content Blocks Without Wrestling With Dicts

Comments
3 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
Fast Heuristic Token Counter: Know Your Prompt Size Without Calling tiktoken

Fast Heuristic Token Counter: Know Your Prompt Size Without Calling tiktoken

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
How to Build a Capability-First Model Portfolio in TypeScript

How to Build a Capability-First Model Portfolio in TypeScript

1
Comments
1 min read
Ordered Provider Failover: Try Anthropic, Fall Back to OpenAI, Then Gemini

Ordered Provider Failover: Try Anthropic, Fall Back to OpenAI, Then Gemini

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