Building AI Agents for Network Operations: Design LLM-powered NetOps workflows with Python, Ollama, MCP, and tool calling
暫譯: 為網路運營建構 AI 代理:使用 Python、Ollama、MCP 和工具調用設計 LLM 驅動的 NetOps 工作流程

Baksh, Sif

  • 出版商: Packt Publishing
  • 出版日期: 2026-07-29
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 226
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1808346831
  • ISBN-13: 9781808346835
  • 相關分類: LangChainComputer-networks
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build AI-assisted network troubleshooting workflows that parse CLI output, call approved tools, use MCP, and keep evidence visible for review

Key Features:

- Build local LLM workflows for NetOps using Python, Ollama, and validated CLI data

- Create troubleshooting agents that use memory, approved tools, and clear evidence

- Package reusable network tools with MCP and plan controlled read-only pilots

Book Description:

Network troubleshooting is full of clues, but they are often buried in noisy alerts, long CLI output, missing topology context, and incomplete handoffs. Building AI Agents for Network Operations shows how to use AI agents, LLMs, and network automation in a controlled way, so engineers can get clearer evidence without giving up validation or operational control.

You will start with local LLM workflows using Ollama and Python, then use a simple RACE prompt structure to make repeatable NetOps tasks clearer, safer, and easier to review. You will parse interface and BGP output into structured data, build a chatbot that keeps troubleshooting context, and connect the model to approved tools for device status, interfaces, reachability, topology, and BGP health. You will then build an agentic troubleshooting loop, package reusable network tools with MCP, and learn how to evaluate these workflows against logging, approvals, observability, runbooks, feature flags, and read-only pilot readiness.

By the end of this book, you will have a practical path for turning AI ideas into NetOps workflows that can be tested in a lab, reviewed by your team, and adapted toward real-world network operations with the right controls.

What You Will Learn:

- Run local LLM workflows with Ollama and Python

- Shape reliable NetOps prompts using RACE

- Parse CLI and BGP output into structured JSON

- Build chatbots that remember troubleshooting context

- Connect AI agents to approved network tools

- Create evidence-based troubleshooting loops

- Expose reusable network tools with MCP

- Plan read-only pilots with safety controls

Who this book is for:

This book is for network engineers, NetOps engineers, NOC engineers, SREs, DevOps engineers, and network automation professionals who want to apply AI to troubleshooting without losing control. Basic networking and CLI familiarity will help, beginner Python knowledge is useful for following the labs.

Table of Contents

- Understanding AI Agents for Network Operations

- LLM Fundamentals and Local Setup

- Prompt Engineering for Network Automation

- Parsing Network Outputs into Structured Data

- Building a Network Chatbot with Memory

- Designing Tools and Agentic Workflows

- Building the Main Network Troubleshooting Agent

- From Lab Agents to Reusable Tools with MCP

- Moving Toward Production-Ready Network Agents

- Appendix: AI Network Agent Design Toolkit

商品描述(中文翻譯)

建立 AI 輔助的網路故障排除工作流程,解析 CLI 輸出,調用經批准的工具,使用 MCP,並保持證據可見以供審查

主要特點:
- 使用 Python、Ollama 和經驗證的 CLI 數據為 NetOps 建立本地 LLM 工作流程
- 創建使用記憶、經批准工具和清晰證據的故障排除代理
- 使用 MCP 封裝可重用的網路工具,並計劃受控的只讀試點

書籍描述:
網路故障排除充滿了線索,但這些線索常常埋藏在嘈雜的警報、冗長的 CLI 輸出、缺失的拓撲上下文和不完整的交接中。《為網路運營建立 AI 代理》展示了如何以受控的方式使用 AI 代理、LLMs 和網路自動化,讓工程師能夠獲得更清晰的證據,而不必放棄驗證或操作控制。

您將從使用 Ollama 和 Python 的本地 LLM 工作流程開始,然後使用簡單的 RACE 提示結構使可重複的 NetOps 任務更清晰、更安全且更易於審查。您將解析介面和 BGP 輸出為結構化數據,建立一個保持故障排除上下文的聊天機器人,並將模型連接到經批准的工具,以獲取設備狀態、介面、可達性、拓撲和 BGP 健康狀況。接著,您將建立一個代理故障排除循環,使用 MCP 封裝可重用的網路工具,並學習如何根據日誌、批准、可觀察性、運行手冊、功能標誌和只讀試點準備情況來評估這些工作流程。

在本書結束時,您將擁有一條實用的路徑,將 AI 構思轉化為可以在實驗室中測試、由您的團隊審查並適應於現實世界網路運營的 NetOps 工作流程,並具備適當的控制。

您將學到的內容:
- 使用 Ollama 和 Python 運行本地 LLM 工作流程
- 使用 RACE 形塑可靠的 NetOps 提示
- 將 CLI 和 BGP 輸出解析為結構化 JSON
- 建立記憶故障排除上下文的聊天機器人
- 將 AI 代理連接到經批准的網路工具
- 創建基於證據的故障排除循環
- 使用 MCP 暴露可重用的網路工具
- 計劃具有安全控制的只讀試點

本書適合誰:
本書適合網路工程師、NetOps 工程師、NOC 工程師、SRE、DevOps 工程師和希望在不失去控制的情況下將 AI 應用於故障排除的網路自動化專業人士。基本的網路和 CLI 熟悉度將有所幫助,初學者的 Python 知識對於跟隨實驗室內容也很有用。

目錄
- 理解網路運營的 AI 代理
- LLM 基礎和本地設置
- 網路自動化的提示工程
- 將網路輸出解析為結構化數據
- 建立具有記憶的網路聊天機器人
- 設計工具和代理工作流程
- 建立主要的網路故障排除代理
- 從實驗室代理到使用 MCP 的可重用工具
- 向生產就緒的網路代理邁進
- 附錄:AI 網路代理設計工具包