schelling-langchain
LangChain tools for the Schelling Protocol — the open coordination layer for AI agents.
Install
pip install schelling-langchain
# For OpenAI agents:
pip install schelling-langchain[openai]
Quick Start
from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_openai_functions_agent
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
from schelling_langchain import SchellingSeekerTool, SchellingOfferTool, SchellingDescribeTool
llm = ChatOpenAI(model="gpt-4o", temperature=0)
tools = [SchellingSeekerTool(), SchellingOfferTool(), SchellingDescribeTool()]
prompt = ChatPromptTemplate.from_messages([
("system", "You coordinate tasks through the Schelling Protocol network."),
("human", "{input}"),
MessagesPlaceholder("agent_scratchpad"),
])
agent = create_openai_functions_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
result = executor.invoke({"input": "Find me a React developer in Denver under $100/hr"})
print(result["output"])
Available Tools
| Tool | Input | Description |
|---|---|---|
SchellingSeekerTool |
Natural language | Search the network |
SchellingOfferTool |
Natural language | Post an offering |
SchellingDescribeTool |
(none) | Network info/stats |
SchellingSearchTool |
TOKEN|{cap_query} |
Token-based search with capability filtering |
SchellingInterestTool |
TOKEN|CANDIDATE |
Express interest |
SchellingContractTool |
TOKEN|PARTY|{terms} |
Propose contract |
Custom Endpoint
from schelling_langchain import SchellingSeekerTool, SchellingClient
client = SchellingClient(base_url="http://localhost:3000/schelling")
tool = SchellingSeekerTool(client=client)
Links
Metadata
Release files for schelling-langchain 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| schelling_langchain-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for schelling_langchain-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| schelling_langchain-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for schelling_langchain-0.1.0-py3-none-any.whl |
Total release size: 10.0 kB
Release files / schelling_langchain-0.1.0.tar.gz
| Download URL | schelling_langchain-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba9b026102edd9119324e0b3a2e3908c0efb0e7e6919253f76bb6738e9823753
|
|
BLAKE2b-256 checksum How to use checksums |
46a16995c1fee09df41aef87e779da2c78a3eb401ea298c3e72923683e1bb882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / schelling_langchain-0.1.0-py3-none-any.whl
| Download URL | schelling_langchain-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b69583d4ac10aabea8f546a0d590b12961a6f651421f4dde66ef21e8ba1d2c55
|
|
BLAKE2b-256 checksum How to use checksums |
878b542531aaba1e01ec410e1aa38431c3997dcf5c7251efbc18b9de1e5015b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for schelling-langchain 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.