惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
雷峰网
雷峰网
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
G
Google Developers Blog
腾讯CDC
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
博客园_首页
T
Tailwind CSS Blog
C
Check Point Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - hedimanai-pro/toolops: ToolOps is a framework-ag...
hedimanai · 2026-05-10 · via Hacker News - Newest: "AI"

ToolOps Logo

The Industrial-Grade Resilience & Efficiency Layer for AI Agent Tools

PyPI version Python License GitHub Stars

Build Production-Ready Agents. Stop Writing Infrastructure Boilerplate.

Website · Documentation · Quickstart · Changelog


Philosophy

AI Agents are only as reliable as the tools they wield. In production, tools are expensive, unreliable, and slow.

ToolOps is a framework-agnostic middleware SDK that treats every tool call as a first-class operation. By wrapping your tools in a single decorator, you instantly upgrade them with industrial-grade caching, resilience, and observability.

"ToolOps is to AI Tools what Service Mesh is to Microservices."


Feature Standard @lru_cache ToolOps SDK
Async Support ❌ No ✅ Native
Semantic Cache ❌ No ✅ Yes (Embeddings)
Resilience ❌ No ✅ Circuit Breaker / Retries
Distributed ❌ No ✅ Postgres (S3 / Redis coming)
Observability ❌ No ✅ OTEL / Prometheus
AI Native ❌ No ✅ MCP / LangChain / LangGraph / CrewAI etc. Ready

The Production Wall

Every agent developer hits the same wall when moving from demo to production:

The Problem The Business Impact The ToolOps Fix
Redundant Calls 💸 Skyrocketing API costs Semantic Cache (1 call, 99 hits)
API Instability 💥 Agent crashes & loops Circuit Breaker & Retries
Concurrency 🐢 Bottlenecks on shared tools Request Coalescing
Observability 🌑 Blind operations Native OTEL & JSON Logging
Standardization 🧩 Framework lock-in Universal Decorator

Quickstart

Install the SDK (Core is zero-dependency):

pip install toolops[all]

Supercharge your tools in seconds:

from toolops import readonly, sideeffect, cache_manager
from toolops.cache import MemoryCache, PostgresCache

# 1. Plug-and-play Backends
cache_manager.register("fast", MemoryCache(), is_default=True)

# 2. Add Intelligence & Resilience to any function
@readonly(cache_backend="fast", cache_ttl=3600, retry_count=3)
async def get_market_data(ticker: str):
    return await api.fetch(ticker) # Automatically cached & retried

@sideeffect(circuit_breaker=True, timeout=5.0)
async def execute_trade(order: dict):
    return await broker.submit(order) # Protected by Circuit Breaker

Engineering Features

Semantic Caching

Don't just cache exact strings. ToolOps uses vector embeddings to understand the meaning of a query. If an agent asks "How's the weather in Paris?" and then "What is the Parisian weather like?", ToolOps serves the cached result. Reduces LLM latency by up to 90%.

Industrial Resilience

  • Circuit Breakers: Stop pounding failing APIs before they take down your system.
  • Stale-if-Error: If an upstream API fails, ToolOps can automatically serve the last known good value from the cache.
  • Request Coalescing: If 50 agents call the same tool simultaneously, ToolOps executes it once and multicasts the result.

MCP Integration (Model Context Protocol)

ToolOps is "AI-Native". It includes built-in support for MCP, allowing you to instantly expose your decorated tools to Claude Desktop, Cursor, or any MCP-compatible host without writing a single line of JSON Schema.


Ecosystem Compatibility

ToolOps is designed to be the "glue" of the AI ecosystem. It works natively with:

Built-in Helpers

  • LangChain / LangGraph
  • CrewAI
  • LlamaIndex
  • Model Context Protocol (MCP)

General Compatibility

  • PydanticAI
  • AutoGPT
  • Any Python function-based agent framework

Observability & Metrics

ToolOps doesn't just run your tools; it measures them.

  • Structured Logging: Every hit, miss, failure, and retry is logged in production-ready JSON.
  • OpenTelemetry: Native traces and spans to visualize tool execution in Jaeger, Honeycomb, or Datadog.
  • Prometheus: Real-time metrics for cache hit rates and tool latency.

🗺 Roadmap

  • Web Dashboard: Real-time metrics, cost attribution, and hit rates UI.
  • Budget Control: Hard limits on tool-induced API costs per hour/day.
  • Native MCP Server: One-click deployment of ToolOps tools as a standalone host.
  • Streaming Middleware: Support for streaming tool outputs in real-time.
  • New Backends: MariaDB, ChromaDB, and Pinecone support.

CLI & Operations

ToolOps includes a command-line tool to inspect and manage your tool infrastructure.

# See all available commands
toolops --help

# Check system health and backend readiness
toolops doctor

# View real-time cache statistics
toolops stats --app my_app:setup_toolops

# Clear a specific cache backend
toolops clear postgres --app my_app:setup_toolops

Maintenance & Support

ToolOps is an open-source project by Hedi MANAI. I am building the future of Agentic Operations through lightweight, industrial-grade tools.


📄 License

Apache License 2.0 — see LICENSE for details.


Created by Hedi MANAI
Empowering the next generation of Agentic Workflows.