The Pulse
LangChain Adds Goals to Guide Agent Improvement in LangSmith
LangSmith Engine users can describe an outcome in natural language and use it to guide investigations and recommendations. LangChain says the system also helps teams establish a metric and track progress as they change their agents.

Users of LangSmith Engine can now set goals in natural language to guide how the system investigates and recommends improvements to their AI agents. LangChain said in a December 3 post that the new Engine Goals feature also helps teams define a metric and track progress as they make changes.
LangSmith Engine examines production traces, identifies gaps and opportunities and recommends changes to agents. With Goals, users can specify an outcome such as resolving more support tickets on the first try or getting more pull requests merged, and Engine uses it to decide where to investigate.
Setting an outcome
A team can create a goal in LangSmith or by sending Engine a Slack message. Engine then helps clarify the desired outcome and identify a metric, which can be recorded on individual traces to connect agent behavior with results.
Engine checks whether the metric is already present in trace data or feedback, or whether an evaluator could measure it. If the signal is missing, it can help instrument the agent to capture it, including by opening a pull request to record the outcome as feedback on relevant traces.
A team can also define multiple goals covering different priorities, such as performance or cost. Once a goal is defined, Engine groups relevant existing recommendations under it, uses its metric to inform future investigations and tracks progress as the team makes changes.
LangChain says Engine continues to look for important findings outside the stated goals, but conducts that broader analysis less frequently. It can also ask for clarification during an investigation when expected behavior is unclear from the system prompt or application code.
An internal test
The company said it used Goals with Content Studio, an internal agent that creates videos, social graphics, recreated interface images and slide decks from Slack prompts. Its team set a goal around the use of generated content in marketing, measured by the percentage posted to social media channels.
According to the post, Engine found that publication information existed elsewhere but was not attached to individual traces, and opened a pull request to add it as feedback. With that signal in place, it could compare similar requests and the execution paths associated with published and unpublished content.
In one investigation, Engine identified that videos receiving follow-up edits were less likely to be posted, even when the edits completed without errors. The company said small revision requests could trigger regeneration of an entire video, changing previously approved scenes or timing and prompting further corrections.
LangChain said Engine generated a fix that preserved the project and limited revisions to relevant scenes. It also added revision requests to an existing regression dataset and evaluated the fix against the full dataset before it shipped.
How investigations work
Engine can examine tool calls, latency, turns and token usage, as well as analyze messages for signs of dissatisfaction or group execution paths for similar requests. It can combine those methods as an investigation develops, using a goal metric to compare traces with different outcomes.
The company says its evaluations turn behaviors and gaps that Engine should recognize into cases for assessing its recommendations. Its development work has sought to provide enough guidance for efficient investigations while leaving Engine room to find related opportunities outside prescribed methods.
LangChain Inc. on AI.info
- Company: LangChain Inc. — LangChain provides the open agent engineering platform and open source frameworks teams need to build, control, and own their agent intelligence.
Sources
- Original source · Blog post LangChain “Toward goal-oriented agent improvement with LangSmith Engine” langchain.com