proomt

Search

Search posts, papers, and topics

All posts

Hacker News front page

How AI tool calling works (40 lines of vanilla JavaScript)

Related reading

  1. Build a Typed Context Compaction Gate for AI Agents

    A step‑by‑step tutorial showing how to build a typed context‑compaction gate for AI agents in TypeScript using LangChain and Zod. It defines a discriminated‑union schema for keep/summarize/discard actions, implements a fast gpt‑4o‑mini classifier, validates decisions at runtime, and wires the gate as middleware in an agent loop, with testing and production‑grade tuning advice.

    SitePointsitepoint.com16 min
  2. AI on your terms: Firefox meets you where you are

    Firefox adds an AI Controls panel letting users toggle all current and future AI features, pick individual capabilities (translation, alt‑text, tab suggestions, link‑preview key points), and choose from multiple chatbot providers (Claude, ChatGPT, Gemini, Mistral) in a sidebar. The new Smart Window beta integrates an AI assistant that can read open tabs, browsing history, group related tabs, show…

    Mozilla Automation Teammozilla.org4 min
  3. Build Your Own AI Agent Harness in C#, the MafClaw Live Series

    The post walks .NET developers through using Microsoft Agent Framework's harness to turn a simple IChatClient into a fully‑featured C# AI agent, showing code for tool integration, file sandboxing, approval flows, and memory, then outlines further capabilities like skills and observability.

    .NETmicrosoft.com10 minHN2