Skip to main content

AI Ops - Advanced artificial intelligence capabilities for Nautobot through multi-provider LLM architecture and Model Context Protocol

Project description

AI Ops


CI Status Docs Deploy Status PyPI Version Python Versions
GitHub Pages PyPI Downloads License
An App for Nautobot.

Overview

The AI Ops plugin brings advanced artificial intelligence capabilities to Nautobot through a flexible multi-provider architecture and the Model Context Protocol (MCP). This app provides an intelligent chat assistant that can interact with your Nautobot environment, external MCP servers, and other integrated systems to help automate operational tasks, answer questions, and provide insights based on your network infrastructure data.

At its core, AI Ops leverages LangGraph and LangChain to orchestrate conversations with Large Language Models (LLMs) from multiple providers (Ollama, OpenAI, Azure AI, Anthropic, HuggingFace, and custom providers), maintaining conversation context through checkpointed sessions stored in Redis. The plugin supports flexible LLM provider and model management, allowing administrators to define multiple providers and models for various use cases. A powerful middleware system enables request/response processing with features like caching, logging, validation, and retry logic. The multi-MCP server architecture enables the AI assistant to connect to both internal and external MCP servers, providing extensible tool access for network automation, data retrieval, and operational workflows. Enterprise features include automated health monitoring for MCP servers, middleware cache management, automatic status tracking, conversation persistence, and scheduled maintenance tasks to maintain optimal performance.

Key Features

  • Multi-Provider LLM Support: Use models from Ollama (local), OpenAI, Azure AI, Anthropic, HuggingFace, or implement custom providers
  • LLM Provider Management: Configure and manage multiple LLM providers with provider-specific settings and handler classes
  • LLM Model Management: Configure multiple models from different providers with varying capabilities, temperature settings, and configurations
  • Middleware System: Apply middleware chains to models for caching, logging, validation, retry logic, rate limiting, and custom processing
  • Priority-Based Middleware Execution: Control middleware execution order (1-100) with pre and post-processing phases
  • AI Chat Assistant: Interactive chat interface that understands and responds to natural language queries about your Nautobot environment
  • MCP Server Integration: Connect to internal and external Model Context Protocol servers to extend capabilities with custom tools
  • Automated Health Monitoring: Scheduled health checks for MCP servers with retry logic and automatic cache invalidation
  • Conversation Persistence: Checkpoint-based conversation management using Redis ensures context is maintained across sessions
  • Secure Configuration: API keys and credentials managed through Nautobot's Secret objects, never stored directly
  • Scheduled Tasks: Background jobs for checkpoint cleanup, MCP server health monitoring, and middleware cache management
  • RESTful API: Full API support for programmatic access to all models (providers, models, middleware, MCP servers)
  • Environment-Aware: Supports LAB (local development with Ollama), NONPROD, and PROD environments

More screenshots and detailed use cases can be found in the Using the App page in the documentation.

Requirements

  • Nautobot 2.4.22+
  • Python 3.10 - 3.12
  • Redis (for conversation checkpointing and caching)
  • At least one LLM provider:
    • Ollama (local, free): For development and testing
    • OpenAI API: For OpenAI models (requires API key)
    • Azure OpenAI: For Azure-hosted models (requires subscription)
    • Anthropic API: For Claude models (requires API key)
    • HuggingFace: For HuggingFace models (requires API key)
    • Custom: Implement your own provider handler
  • Optional: MCP servers for extended functionality

Documentation

Full documentation for this App can be found over on the Nautobot Docs website:

Contributing to the Documentation

You can find all the Markdown source for the App documentation under the docs folder in this repository. For simple edits, a Markdown capable editor is sufficient: clone the repository and edit away.

If you need to view the fully-generated documentation site, you can build it with MkDocs. A container hosting the documentation can be started using the invoke commands (details in the Development Environment Guide) on http://localhost:8001. Using this container, as your changes to the documentation are saved, they will be automatically rebuilt and any pages currently being viewed will be reloaded in your browser.

Any PRs with fixes or improvements are very welcome!

Questions

For any questions or comments, please check the FAQ first. Feel free to also swing by the Network to Code Slack (channel #nautobot), sign up here if you don't have an account.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nautobot_ai_ops-1.0.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nautobot_ai_ops-1.0.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file nautobot_ai_ops-1.0.0.tar.gz.

File metadata

  • Download URL: nautobot_ai_ops-1.0.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nautobot_ai_ops-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd5320f9bff12647ae528783e93fb65e7654dff9f435470503b06595c2d5cb47
MD5 48e7be35eed33450a8f2a93e2a9a1e98
BLAKE2b-256 dfcc3f531e0889a0a181bed04a02d4f731c66aa52c5717ba0340eef0305c9bd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_ai_ops-1.0.0.tar.gz:

Publisher: publish-pypi.yml on kvncampos/nautobot-ai-ops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nautobot_ai_ops-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_ai_ops-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0255418b473498d4b9b3df924cac56c42fa41dd258129dd9be454da55ca84e65
MD5 c508f8240fa853c9f8df8ebcb35c5844
BLAKE2b-256 04beb132f662455aee58eaa2ea069659af076c1cb50a6dd1ee064790edcca32e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_ai_ops-1.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on kvncampos/nautobot-ai-ops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page