Python
使用 LangChain Python 与 Tilores 集成。
pip install -U tilores-langchain
import os from tilores import TiloresAPI os.environ["TILORES_API_URL"] = "<api-url>" os.environ["TILORES_TOKEN_URL"] = "<token-url>" os.environ["TILORES_CLIENT_ID"] = "<client-id>" os.environ["TILORES_CLIENT_SECRET"] = "<client-secret>" tilores = TiloresAPI.from_environ()
TiloresTools
from tilores_langchain import TiloresTools