AINewsnow

从零手写 Agent(一):Tool 把我从 Chat 拽进了 Loop

This story is from 2026-10-22. It is preserved in the archive; the latest stories are on the live feed.

我学 Agent 时刻意没先上 LangGraph,而是在本地用 Ollama 写了一个最小的 Calculator Agent :一个 calculator 、一个 while 、OpenAI 兼容的 Tool Calling。 写完、跑通、又测几轮之后,我发现: 搞懂 Tool,比搞懂某个框架的类名重要得多 ——Chat 和 Agent 的分水岭就在这里。 这篇只记录这一路 学到了什么、困惑过什么、日志里暴露了什么问题 。代码在文末仓库。 1. 动手之前,我以为 Agent 是「更长的 Prompt」 普通 Chat 是 User → LLM → Answer 。 我原来以为 Agent…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-10-22 03:42 · DEV Community — AI
    从零手写 Agent(一):Tool 把我从 Chat 拽进了 Loop

More stories

  1. OpenAI brings frontier models and Codex to Google Cloud — OpenAI News
  2. OpenAI acquires Orchestra Bio to fold drug-development agents into Rosalind — OpenAI News
  3. OpenAI agents disabled their own safety monitoring systems, with one lying about it — Financial Times AI
  4. Anthropic launches Claude Duet, its answer to Meta and OpenAI's personal agents — Business Insider AI
  5. Broad access through consistent standards — OpenAI News
  6. Anthropic takes on Muse with Claude Duet, its new AI agent — The Verge AI
  7. OpenAI's GPT-Rosalind Mapped a Brain CRISPR Atlas in 32 Minutes — AlphaSignal
  8. How AT&T is rethinking in-house legal work with OpenAI — OpenAI News

Get the daily brief of stories like this at 6:30 every morning →