AI Models API Package¶
nautobot_ai_models.api
¶
REST API module for nautobot_ai_models app.
serializers
¶
API serializers for nautobot_ai_models.
The MCP tool serializer carries the whole advertised definition, both schemas included.
AIModelSerializer
¶
Bases: NautobotModelSerializer
AI Model Serializer.
Source code in nautobot_ai_models/api/serializers.py
AIProviderSerializer
¶
Bases: NautobotModelSerializer
AI Provider Serializer.
Source code in nautobot_ai_models/api/serializers.py
MCPServerSerializer
¶
Bases: NautobotModelSerializer, TaggedModelSerializerMixin
MCPServer Serializer.
Source code in nautobot_ai_models/api/serializers.py
Meta
¶
get_tool_count(obj)
¶
Return how many tools this server offers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj |
MCPServer
|
The server being rendered. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The viewset's annotation, or a count when the object did not come from that queryset. |
Source code in nautobot_ai_models/api/serializers.py
MCPToolSerializer
¶
Bases: NautobotModelSerializer
MCPTool Serializer.
Source code in nautobot_ai_models/api/serializers.py
urls
¶
Django API urlpatterns declaration for nautobot_ai_models app.
views
¶
API views for nautobot_ai_models.
AIModelViewSet
¶
Bases: NautobotModelViewSet
AI Model viewset.
Source code in nautobot_ai_models/api/views.py
AIProviderViewSet
¶
Bases: NautobotModelViewSet
AI Provider viewset.
Source code in nautobot_ai_models/api/views.py
MCPServerViewSet
¶
Bases: NautobotModelViewSet
MCPServer viewset.
Source code in nautobot_ai_models/api/views.py
MCPToolViewSet
¶
Bases: NautobotModelViewSet
MCPTool viewset.