Tagged “AI”

21 posts · View all tags
Split one MCP toolbox between two agents so the scheduler cannot issue refunds
IntermediatePart 4

Split one MCP toolbox between two agents so the scheduler cannot issue refunds

Part 3 handed one agent all five tools and let a human pause guard the dangerous one. That guard depends on the model asking. This splits the same MCP server between a scheduler and a billing agent, so the scheduler cannot refund an invoice for the simplest reason available — the tool was never in its list. Then the supervisor goes back on top, and routing turns out not to be the guarantee.

AIAgentsself-hostingmcp
September 4, 202613 min read
Read more
Book appointments and refund invoices from a LangGraph agent over MCP
IntermediatePart 3

Book appointments and refund invoices from a LangGraph agent over MCP

The scheduler and billing agents from Parts 1 and 2 never actually scheduled or billed anything. This gives them a calendar, a customer list and a refund that no model can issue alone — over MCP, on the stateless spec, with the model on WEC Inference. Includes three things nobody documents: your server still defaults to sessions, ctx.elicit is the old API and its era error goes to the model, not to you, and cache=True does nothing unless the server advertises a TTL.

AIAgentsself-hostingmcp
September 3, 202621 min read
Read more
Hand work between LangGraph agents without corrupting shared state
IntermediatePart 2

Hand work between LangGraph agents without corrupting shared state

A supervisor routes work to specialists, an agent hands off mid-task, and two agents write the same state key in the same step. One of those raises an error rather than picking a winner — and the routing decision costs 412 output tokens to say one word.

AIAgentsself-hostinglanggraph
August 26, 202618 min read
Read more
Checkpoint a LangGraph agent on a WEC Instance so crashes cost you nothing
IntermediatePart 1

Checkpoint a LangGraph agent on a WEC Instance so crashes cost you nothing

Persist agent state to Postgres on a WEC Instance, call a model on the WEC Inference API, then kill the process mid-run twice and resume both times from exactly where it stopped — plus the human-approval pause, and the interrupt that silently fires your side effects twice.

AIAgentsself-hostinglanggraph
August 26, 202621 min read
Read more
Migrate OpenClaw's Telegram Bot to Hermes
BeginnerPart 2

Migrate OpenClaw's Telegram Bot to Hermes

Move the same Telegram bot from the OpenClaw series onto Hermes — same chat, same users, a different agent answering underneath. Real setup wizard, a real allowlist gotcha, and proof it answers.

AIself-hostingtelegramhermes
July 29, 20265 min read
Read more
Add web search to your WEC Inference calls
BeginnerPart 8

Add web search to your WEC Inference calls

Your RAG assistant answers great from your docs — but not about anything recent. WEC Inference now has a built-in web-search tool: add it to a chat call and the model pulls in current info. A quick before/after test.

AIinferenceweb-searchtool-use
July 23, 20263 min read
Read more
Component-level tracing: debugging agent tool calls
IntermediatePart 7

Component-level tracing: debugging agent tool calls

Your agent's thinking and its actions are two different layers. Build a tool-calling agent on WEC Inference, trace it with Langfuse, then debug two real failures from the trace — including the confident, wrong answer that never throws a stack trace.

AIAgentsinferenceevals
July 22, 202613 min read
Read more
Build a WhatsApp AI assistant from scratch with Evolution and the WEC API
IntermediatePart 1

Build a WhatsApp AI assistant from scratch with Evolution and the WEC API

Self-host a programmable WhatsApp gateway (Evolution API) and write the ~50-line bridge that turns it into an AI assistant — webhook in, LLM out, reply back. Every gotcha is real: the image that moved publishers, the Baileys version loop, the loop guard, group spam, WhatsApp's LID addressing, and the delivery wall nobody warns you about.

AIself-hostinginferencedocker
July 21, 202616 min read
Read more
Regression-test your RAG service with DeepEval — and settle a model debate with data
AdvancedPart 6

Regression-test your RAG service with DeepEval — and settle a model debate with data

Wrap the RAG assistant from part 5 in a containerized DeepEval suite judged by gemma4 on the WEC Inference API — no OpenAI key anywhere. Then use it to answer a real question: should we swap our generation model? Same quality, 5.5× the tokens: the eval says no. Every command, number, and error is real.

AIinferenceevalsdocker
July 20, 202619 min read
Read more
Add a WhatsApp channel to OpenClaw
BeginnerPart 6

Add a WhatsApp channel to OpenClaw

Put your self-hosted agent on WhatsApp. Add the channel, trust the plugin, scan a QR — and understand why a companion link makes the agent act as your account. Every command and error from a real run.

AIself-hostingopenclawchatbot
July 20, 20265 min read
Read more
The capstone: build, evaluate, and observe a RAG docs assistant on the WEC API
AdvancedPart 5

The capstone: build, evaluate, and observe a RAG docs assistant on the WEC API

Build a production-shaped RAG service in Docker: scrape a real docs site, embed locally, generate on the WEC Inference API — then catch a real hallucination, root-cause it to your own scraper, fix it, and pin it with a regression test. Every command, number, and error is real.

AIinferenceevalsdocker
July 13, 202626 min read
Read more
Catch what your tests miss: observe and score your WEC app in production with Langfuse
AdvancedPart 4

Catch what your tests miss: observe and score your WEC app in production with Langfuse

CI evals pass on a fixed test set — but production sends inputs you never tested. Self-host Langfuse on a WEC Instance, trace every real call, auto-score live traffic with an LLM judge, drill into the exact step that broke, and feed failures back to make your evals stronger. Every command — and every dead end — is real.

AIself-hostinginferenceevals
July 7, 202618 min read
Read more
Stop hand-writing test cases: generate an eval dataset with the WEC API
IntermediatePart 3

Stop hand-writing test cases: generate an eval dataset with the WEC API

Two hand-typed test cases aren't an eval. Use the WEC Inference API to generate a labeled evaluation dataset — then validate and curate it, because generated labels aren't automatically correct. The result is real test data at scale; feed it to your harness and coverage surfaces the misclassifications and debatable labels two cases would hide. Every command and result is real.

AIinferenceevalsobservability
July 6, 202613 min read
Read more
Trustworthy JSON: schema-validate your model's structured output
IntermediatePart 2

Trustworthy JSON: schema-validate your model's structured output

LLMs promise JSON and deliver markdown fences and reasoning. Build a Promptfoo eval that classifies support tickets into schema-validated JSON on the WEC Inference API — with transforms to recover messy output, a model-reliability matrix, and a CI gate. Every command and result is real.

AIinferenceevalsobservability
July 1, 202614 min read
Read more
Evaluate your models with Promptfoo on the WEC Inference API
BeginnerPart 1

Evaluate your models with Promptfoo on the WEC Inference API

Stop eyeballing LLM output. Build a real evaluation harness with Promptfoo pointed at the WEC Inference API — assertions, latency guardrails, JSON-schema checks, model-graded rubrics, an all-WEC model comparison, and a CI gate. Every command and result is real.

AIinferenceevalsobservability
June 30, 202612 min read
Read more
Self-host the Hermes Agent with persistent memory
IntermediatePart 1

Self-host the Hermes Agent with persistent memory

Deploy Nous Research's open-source Hermes Agent on your WEC Instance — with SQLite-backed persistent memory that survives a full reboot. Real install, model config, and a memory-survives-restart test.

AIAgentsself-hostinghermes
June 25, 202612 min read
Read more
Run OpenClaw on WEC Models
BeginnerPart 5

Run OpenClaw on WEC Models

Swap the closed provider for WiLine's own inference: point your self-hosted OpenClaw agent at WEC Models — same box, a base-URL/key/model change, no per-token lock-in.

AIself-hostinginferenceopenclaw
June 25, 20267 min read
Read more
Make OpenClaw private with a NetBird mesh VPN
IntermediatePart 4

Make OpenClaw private with a NetBird mesh VPN

Put OpenClaw on a private mesh with NetBird, repoint your hostname at the mesh IP, and close the public ports — so the same chat URL works only for your devices. Real commands and gotchas from a live run.

AIself-hostingopenclawsecurity
June 24, 202616 min read
Read more
Secure OpenClaw with a Caddy reverse proxy + HTTPS
IntermediatePart 2

Secure OpenClaw with a Caddy reverse proxy + HTTPS

Put Caddy in front of OpenClaw for real HTTPS and device-paired auth, then close the gateway's ports so the proxy is the only way in — gotchas and all.

AIself-hostingdockeropenclaw
June 23, 20268 min read
Read more
Add a Telegram channel to OpenClaw
BeginnerPart 3

Add a Telegram channel to OpenClaw

Talk to your self-hosted OpenClaw agent from your phone. Create a Telegram bot, connect it, clear the pairing gate, and chat — captured from a real run.

AIself-hostingopenclawtelegram
June 23, 20266 min read
Read more
Deploy OpenClaw on a WEC Instance via Docker Compose
BeginnerPart 1

Deploy OpenClaw on a WEC Instance via Docker Compose

From a fresh WEC Instance to a self-hosted OpenClaw agent that actually answers — Docker Compose, your own model key, and every real error and fix from a live deploy.

AIself-hostingdockeropenclaw
June 18, 202611 min read
Read more