Skip to main content

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

Metadata

Release files for truthstack-langchain 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for truthstack-langchain 1.0.0
File Size Uploaded
truthstack_langchain-1.0.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for truthstack-langchain 1.0.0
File Interpreter ABI Platform
truthstack_langchain-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / truthstack_langchain-1.0.0.tar.gz

Download URL truthstack_langchain-1.0.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9e4723ea7fbe57706b315fe537d405acbcade75f23cf902050cf016fd131ba29
BLAKE2b-256 checksum
How to use checksums
0b33c430ca7af1651aa54bf620eb7fe8c2d272bd8041aac7c8ae593fc23e666b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / truthstack_langchain-1.0.0-py3-none-any.whl

Download URL truthstack_langchain-1.0.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d496b93e9aa68e511073f9f84d4f3d0e4660bf65a3bf318007b76b1226e828f
BLAKE2b-256 checksum
How to use checksums
f58710a3ca6673dc1119d8b1390f4d97911a043d5b8dbbbf0655b4c8582fbed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page