Action 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.
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.http://localhost:8080
.
toolkit.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.