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.
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
Named Persona Registry: Keep Your Agent Identities Consistent Across Every Session

Named Persona Registry: Keep Your Agent Identities Consistent Across Every Session

Comments
4 min read
Rule-Based LLM Output Validation: Reject Bad Responses Before They Reach Your Users

Rule-Based LLM Output Validation: Reject Bad Responses Before They Reach Your Users

Comments
5 min read
Cosmic AI Agents vs. Contentful Skills: Two Very Different Visions of AI in the CMS

Cosmic AI Agents vs. Contentful Skills: Two Very Different Visions of AI in the CMS

Comments
5 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
Composable Budget Caps for Agent Runs: Enforce Cost Limits at Multiple Levels

Composable Budget Caps for Agent Runs: Enforce Cost Limits at Multiple Levels

Comments
4 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
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
Give Your Agent a Scratchpad: Keyed In-Memory Notes Between Tool Calls

Give Your Agent a Scratchpad: Keyed In-Memory Notes Between Tool Calls

Comments
4 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
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
Structured Citations for LLM Agents: Track Where Every Claim Came From

Structured Citations for LLM Agents: Track Where Every Claim Came From

Comments
4 min read
Render Tool Output as LLM-Friendly Markdown: Give the Model Readable Data, Not Raw JSON

Render Tool Output as LLM-Friendly Markdown: Give the Model Readable Data, Not Raw JSON

Comments
5 min read
Step Through Your Agent's Failures Like a Debugger

Step Through Your Agent's Failures Like a Debugger

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
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.