LangChain adapter for TruthStack supplement safety API. Check drug interactions, get evidence, search compounds.
Project description
truthstack-langchain
LangChain adapter for TruthStack supplement safety API.
Install
pip install truthstack-langchain
Quick Start
from truthstack_langchain import get_tools
from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_openai_tools_agent
tools = get_tools(api_key="your-key")
llm = ChatOpenAI(model="gpt-4")
agent = create_openai_tools_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
result = executor.invoke({"input": "Can I take berberine while on Ozempic?"})
Tools Included
| Tool | Description |
|---|---|
truthstack_check_interactions |
Check supplement + drug interactions |
truthstack_get_evidence |
Evidence balance + citations |
truthstack_search_supplements |
Fuzzy compound search |
truthstack_safety_signals |
FDA CAERS/FAERS signals |
truthstack_drug_profile |
Drug CYP450 + botanical interactions |
Also available
pip install truthstack # Core client
pip install truthstack-llamaindex # LlamaIndex adapter
pip install truthstack-crewai # CrewAI adapter
API Key
Free key (2,000 calls/month): truthstack.co/developers
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file truthstack_langchain-1.0.0.tar.gz.
File metadata
- Download URL: truthstack_langchain-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e4723ea7fbe57706b315fe537d405acbcade75f23cf902050cf016fd131ba29
|
|
| MD5 |
853579d03e16f38794b83c2b40bef413
|
|
| BLAKE2b-256 |
0b33c430ca7af1651aa54bf620eb7fe8c2d272bd8041aac7c8ae593fc23e666b
|
File details
Details for the file truthstack_langchain-1.0.0-py3-none-any.whl.
File metadata
- Download URL: truthstack_langchain-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d496b93e9aa68e511073f9f84d4f3d0e4660bf65a3bf318007b76b1226e828f
|
|
| MD5 |
2248372f5fe6e27626b7d0ccf78c55d4
|
|
| BLAKE2b-256 |
f58710a3ca6673dc1119d8b1390f4d97911a043d5b8dbbbf0655b4c8582fbed4
|