Setup
LangChain adapter
Wire Talos into a LangChain agent.
The LangChain adapter introspects tools registered on your AgentExecutor and exposes them to Talos through a small HTTP wrapper. It supports both classic and LCEL agents.
1. Install the adapter helper
shell
❯ pip install 'talos-redteam[langchain]'
2. Wrap your agent
serve introspects the executor once at startup and publishes both a chat endpoint and a metadata endpoint Talos uses to build the tool graph.
server.py
from talos.adapters.langchain import servefrom myapp.agent import agent_executorserve(agent_executor,host="0.0.0.0",port=8000,tool_descriptions="auto",)
3. Point Talos at it
shell
❯ talos-scan --target http://localhost:8000/agent --adapter langchain→ Adapter: langchain (v0.3.x)→ Discovering tool graph... 6 tools found
Supported LangChain features
| Feature | Supported |
|---|---|
| AgentExecutor (classic) | Yes |
| LCEL runnables with tool binding | Yes |
| Streaming responses | Yes (chunk-level tracing) |
| Memory (buffer / summary) | Yes |
| Multi-agent supervisors | Beta |