Tool Calling
Easily turn functions into tools
Maitai supports some of the Langchain features for tool calling, easing the migration from Lanchain to Maitai.
Python Tool Calling
Using the Maitai tool wrapper, you can easily turn existing functions into tool calls.
Previously, you may have been defining tools as JSON objects:
And then you had to wrangle that tool call into a map and pass arguemnts.
You can continue doing that, or you can use the @tool
decorator to automatically build that JSON object using your function docstring and arguments.
The same tool call above simply becomes:
Javascript Tool Calling
Maitai provides an LLM agent that you can substitute into your Langchain tool call flow.
Previously, you may have been using Langchain tools in Javascript like:
In order to use Maitai, all you need to change is:
Was this page helpful?