LangChain tools for FTIR spectral search and material identification via the FTIR.fun API
Project description
LangChain FTIR.fun
LangChain tools for FTIR spectral search and material identification via the FTIR.fun API.
Quick Start
pip install langchain-ftirfun
from langchain_ftirfun import get_ftir_tools
from langchain.agents import create_tool_calling_agent
from langchain_openai import ChatOpenAI
# Create FTIR tools
tools = get_ftir_tools(
api_base_url="https://ftir.fun",
api_key="your-api-key",
)
# Use with any LangChain agent
llm = ChatOpenAI(model="gpt-4o-mini")
agent = create_tool_calling_agent(llm, tools, "You are a spectroscopy assistant.")
Tools
| Tool | Description |
|---|---|
ftir_identify_material |
Identify unknown material from FTIR spectrum (peaks or file) |
ftir_explain_peaks |
Explain FTIR peaks with peak-group evidence |
ftir_match_library_topk |
Return top-k spectral library matches |
ftir_assign_functional_groups |
Assign likely functional groups to peaks |
API Key
Get an API key from FTIR.fun and pass it to get_ftir_tools().
Links
- Website: https://ftir.fun
- Repository: https://github.com/jxbaoxiaodong/ftirfun
- MCP:
https://ftir.fun/mcp
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 langchain_ftirfun-1.0.0.tar.gz.
File metadata
- Download URL: langchain_ftirfun-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e577d6c1c641f13e6231f1cab0976aebc9e49cc4ead215e9af4682c1a2f41a7
|
|
| MD5 |
45b6211575cf96fb9cf52397e6aa18a1
|
|
| BLAKE2b-256 |
944e58c3505f35be814dc4c23afbad10badfbbcbdaa282b7419aa31e2dd1f35e
|
File details
Details for the file langchain_ftirfun-1.0.0-py3-none-any.whl.
File metadata
- Download URL: langchain_ftirfun-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b69f8fa528766dd0a79b5832c4a4ad936d0786b064b4d571bb7dfe18fece8dbb
|
|
| MD5 |
67c6d37b43c607ac60e27101828eccb1
|
|
| BLAKE2b-256 |
7f0f2b40dd218e0d03cc5f76e2015a2da4e5108e3d2193fab93a2090ceafb12f
|