Supported frameworks
The Functional API works with any Python or JavaScript agent. The following frameworks have examples in the deployment walkthrough:Don’t see your framework? The Functional API accepts any callable, so you can apply the same pattern shown in the following examples to any agent library. Wrap your agent’s entrypoint with
@task and @entrypoint, then deploy.Why the Functional API?
The Functional API lets you integrate and deploy agents built with frameworks other than LangChain. Deploying to LangSmith provides:- Production deployment: Run your agent on LangSmith Deployment with horizontal scaling, durable execution, and 30+ endpoints including MCP, A2A, and Agent Protocol.
- Enhanced features: Add persistence, streaming, short and long-term memory, and human-in-the-loop to your existing agent with minimal code changes.
- Multi-agent systems: Compose multi-agent systems where individual agents are built with different frameworks.
@entrypoint: Marks a function as the starting point of a workflow, encapsulating logic and managing execution flow, including handling long-running tasks and interrupts.@task: Represents a discrete unit of work, such as an API call or data processing step, that can be executed asynchronously within an entrypoint. Tasks return a future-like object that can be awaited or resolved synchronously.
General deployment pattern
Regardless of framework, follow the same steps. Choose your stack in the tabs inside each step and combine the snippets in one module (for exampleagent.py). Other frameworks follow the same pattern.
1
Set up prerequisites
Install Python dependencies and configure credentials for your provider.
- Claude Agent SDK
- Strands Agents
- CrewAI
- AutoGen
- Google ADK
For Claude Agent SDK install:
- Python 3.10+
- Dependencies:
pip install claude-agent-sdk langgraph langsmith ANTHROPIC_API_KEYset in your environment
2
Define your agent
Build your agent using the framework of your choice, exactly as you would outside of LangSmith.
- Claude Agent SDK
- Strands Agents
- CrewAI
- AutoGen
- Google ADK
3
Wrap with the Functional API
Expose your agent through an
@entrypoint-decorated function. Inside, use @task for the unit of work that calls into the framework.- Claude Agent SDK
- Strands Agents
- CrewAI
- AutoGen
- Google ADK
4
Configure tracing
Forward the framework’s native traces to LangSmith. Most frameworks emit OpenTelemetry, which LangSmith ingests directly.
- Claude Agent SDK
- Strands Agents
- CrewAI
- AutoGen
- Google ADK
Use the LangSmith Claude Agent SDK integration to forward traces:For full setup details, see Trace Claude Agent SDK applications.
5
Deploy
Add a Then follow Deploy to cloud or Deploy standalone.
langgraph.json file pointing at your entrypoint. Use a layout like the following:Connect these docs to Claude, VSCode, and more via MCP for real-time answers.


