[How to define a target function to evaluate | 🦜️🛠️ LangSmith](https://docs.smith.langchain.com/evaluation/how_to_guides/define_target): LLM should read this page when needing to configure a target function for evaluation in LangSmith, implementing evaluations for LLM applications, or setting up testing frameworks for AI components. This page explains how to define target functions for LangSmith evaluations, including the function signature requirements, examples for single LLM calls, non-LLM components, and complete applications/agents with code samples in Python and TypeScript.

