WZRD velocity-aware model selection and inference tools for LangChain.
Project description
langchain-wzrd
LangChain tools for WZRD velocity signals. Real-time model selection across 100+ LLMs.
Install
pip install langchain-wzrd
Tools
WzrdModelPicker (free, zero config)
Returns the best model for a task based on live adoption velocity.
from langchain_wzrd import WzrdModelPicker
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
tools = [WzrdModelPicker()]
llm = ChatOpenAI(model="gpt-4o-mini")
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION)
agent.run("What's the best model for code generation right now?")
With LangGraph:
from langchain_wzrd import WzrdModelPicker
from langgraph.prebuilt import create_react_agent
tools = [WzrdModelPicker()]
agent = create_react_agent(llm, tools)
result = agent.invoke({"messages": [("user", "Which model has the most momentum?")]})
WzrdInference (paid, requires API key)
Runs inference through WZRD's oracle. Auto-selects the top velocity model if none specified.
from langchain_wzrd import WzrdInference
tools = [WzrdInference(api_key="your-key")]
# or set WZRD_API_KEY env var and use WzrdInference() with no args
ChatWZRD (velocity-routed ChatModel)
Drop-in ChatModel that auto-routes every call to the top velocity model.
from langchain_wzrd import ChatWZRD
llm = ChatWZRD(task="code", openai_api_key="sk-or-...")
response = llm.invoke("Write a Python sort function")
How it works
Signals are cached for 60s. The free momentum endpoint requires no auth. Models are ranked by a composite of trend direction, velocity score, and confidence.
Project details
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_wzrd-0.2.0.tar.gz.
File metadata
- Download URL: langchain_wzrd-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bfc45bec338c148d7367923a37aff9d4fa80a4dcdc14928ef11e56c017c5387
|
|
| MD5 |
067d9262f7a972b714ccf1b4eb4f3592
|
|
| BLAKE2b-256 |
2702029d3a31f7fd184c292fc1c5df73de3d505f8b8a781f18de0582b0853898
|
File details
Details for the file langchain_wzrd-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_wzrd-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f76579b39f1c48ba1faaa1a43990acc407da220510bc924ae43193e7b192ceb3
|
|
| MD5 |
ef626879cd6e3748316914d26077a6f9
|
|
| BLAKE2b-256 |
34883a6fa88adb3ce6bac47515fd712d0a2e9747efef121d062264fced0190ee
|