Installation
First, see the Robocorp Quickstart on how to setupAction Server and create your Actions.
In your LangChain application, install the langchain-robocorp package:
Action Server following the above quickstart.
It will create a directory with files, including action.py.
We can add python function as actions as shown here.
Let’s add a dummy function to action.py.
http://localhost:8080 and use the UI to run the function.
Environment Setup
Optionally you can set the following environment variables:LANGSMITH_TRACING=true: To enable LangSmith log run tracing that can also be bind to respective Action Server action run logs. See LangSmith documentation for more.
Usage
We started the local action server, above, running onhttp://localhost:8080.
Single input tools
By defaulttoolkit.get_tools() will return the actions as Structured Tools.
To return single input tools, pass a Chat model to be used for processing the inputs.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.