
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@ophirai/langchain
Advanced tools
LangChain.js tool for Ophir agent negotiation — discover, negotiate, and transact with AI providers
LangChain.js tool for the Ophir agent negotiation protocol. Lets any LangChain-powered agent discover, negotiate with, and transact with AI service providers automatically.
npm install @ophirai/langchain @langchain/core
import { createOphirTools } from "@ophirai/langchain";
import { ChatOpenAI } from "@langchain/openai";
import { AgentExecutor, createToolCallingAgent } from "langchain/agents";
import { ChatPromptTemplate } from "@langchain/core/prompts";
const tools = createOphirTools();
const llm = new ChatOpenAI({ model: "gpt-4" });
const prompt = ChatPromptTemplate.fromMessages([
["system", "You are a helpful assistant that can negotiate with AI providers."],
["human", "{input}"],
["placeholder", "{agent_scratchpad}"],
]);
const agent = createToolCallingAgent({ llm, tools, prompt });
const executor = new AgentExecutor({ agent, tools });
const result = await executor.invoke({
input: "Find me the cheapest inference provider for llama-3-70b with p99 latency under 200ms",
});
const tools = createOphirTools({ registryUrl: "https://my-registry.example.com/v1" });
OphirNegotiateTool — A LangChain StructuredTool that negotiates with AI service providers. Accepts service category, model, budget, currency, SLA requirements, and registry URL. Returns a signed agreement with endpoint URL, pricing, and SLA terms.| Export | Description |
|---|---|
createOphirTools(config?) | Returns an array of LangChain tools ready for use with any agent |
OphirNegotiateTool | The tool class — use directly if you need more control |
OphirNegotiateInput | TypeScript type for the tool's input schema |
FAQs
LangChain.js tool for Ophir agent negotiation — discover, negotiate, and transact with AI providers
We found that @ophirai/langchain demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.