Skip to main content
Loading navigation
Back to prompt library

Initialize LangChain Agent with Arize Instrumentation

Linked challenge: Build an ONDC Logistics Triage Agent with LangChain and Arize Phoenix

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Import `from langchain.agents import AgentExecutor` and configure `phoenix.trace.langchain` instrumentation. Construct a chain that accepts ONDC logistics webhook payloads, classifies network failure codes, and emits a structured fallback command.