@tunnlo/bridge-llm
v0.1.1
Published
Direct LLM API bridge for Tunnlo (Anthropic, OpenAI, Ollama)
Maintainers
Readme
@tunnlo/bridge-llm
LLM and agent framework bridges for Tunnlo pipelines.
Part of the Tunnlo project -- a real-time data-to-agent bridge with intelligent filtering.
Installation
npm install @tunnlo/bridge-llmUsage
import { AnthropicBridge } from '@tunnlo/bridge-llm';
const bridge = new AnthropicBridge({
model: 'anthropic/claude-sonnet-4-5',
system_prompt: 'You are a monitoring agent. Analyze incoming events.',
token_budget: { max_per_hour: 50000, max_per_event: 4000 },
});
const response = await bridge.send(event);
console.log(response.text);API
Direct LLM Bridges
AnthropicBridge-- connects to Anthropic's Claude APIOpenAIBridge-- connects to OpenAI's API (GPT-4o, etc.)OllamaBridge-- connects to a local Ollama instance
Agent Framework Bridges
OpenClawBridge-- WebSocket bridge to an OpenClaw agent gatewayLangGraphBridge-- bridge to LangChain's LangGraph agent graphsCrewAIBridge-- bridge to CrewAI multi-agent framework
Base Class
BaseLLMBridge-- abstract base class for implementing custom bridges
License
MIT
