Agent System Statistics Example icon

Agent System Statistics Example

Demonstrates an AI agent querying system CPU and memory statistics from a local server.

概要

This project illustrates the integration of an AI agent with a local tool server. It features an agent, built using the Pydantic.ai framework and embedded within a Gradio chat application, designed to answer queries about system resource usage. The accompanying local server, implemented with FastAPI and exposed via `fastapi-mcp`, leverages the `psutil` library to provide real-time CPU and memory statistics. Users can engage in a conversational flow, asking follow-up questions about system performance, showcasing how AI agents can interact with specialized local services.

主な機能

  • Provides a local MCP server for system resource monitoring
  • Gradio-based chat interface for conversational agent interaction
  • Integrates Pydantic.ai agent framework for AI interactions
  • Supports OpenAI models with configurable alternative model options
  • 2 GitHub stars
  • Utilizes psutil for accurate CPU and memory statistics

ユースケース

  • Developing chat applications capable of providing system resource information
  • Prototyping and debugging custom MCP server tools
  • Learning how to implement AI agents that interact with local tool servers