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 serve
from myapp.agent import agent_executor
serve(
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

FeatureSupported
AgentExecutor (classic)Yes
LCEL runnables with tool bindingYes
Streaming responsesYes (chunk-level tracing)
Memory (buffer / summary)Yes
Multi-agent supervisorsBeta