Utilize the LangChain Python SDK with FriendliAI for easy integration and advanced tool calling in your applications.
FRIENDLI_TOKEN
from the Friendli Suite.
Our products are entirely compatible with OpenAI, so we use the langchain-openai
package by referring to the FriendliAI baseURL
.
@tool
decorator is used to define a tool.
If you set parse_docstring=True
, the tool will parse the docstring to extract the information of arguments.