AI Briefing
KO

Building a State-Aware Agent Harness with LangSmith

·2026.08.26 23:57

Key point

Candidly built an agent harness using LangSmith to track and respond to user states in real time during conversations.

Details

Most conversational AI evaluates outcomes after the conversation ends, but Candidly developed a state-aware agent harness that identifies user states in real time during conversations and adjusts response strategies. This system analyzes partial conversation traces to infer the user's current state and selects optimal response functions based on transition patterns from past similar conversations.

To predict conversation outcomes, they built a hybrid labeling pipeline. Clear cases (e.g., explicit complaints, no response after the first message) are handled with deterministic rules, while ambiguous cases are routed to an LLM-as-judge evaluator based on conversation patterns. This pipeline achieved a 92.3% agreement rate when compared against a human-labeled LangSmith dataset.

This approach provides a policy surface that allows agents to intervene in real time, rather than relying on simple post-hoc evaluation. This enables Candidly's AI financial planner 'Cait' to more accurately understand user intent and provide effective assistance during high-stakes financial decisions such as debt repayment, savings, and retirement.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.