2026-02-25 12:21:53 +03:30
|
|
|
from django.urls import path
|
|
|
|
|
|
2026-03-27 18:32:49 +03:30
|
|
|
from .views import (
|
|
|
|
|
ChatDetailView,
|
|
|
|
|
ChatListCreateView,
|
|
|
|
|
ChatMessagesView,
|
|
|
|
|
ChatTaskCreateView,
|
|
|
|
|
ChatTaskStatusView,
|
|
|
|
|
ChatView,
|
|
|
|
|
ContextView,
|
|
|
|
|
)
|
2026-02-25 12:21:53 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("context/", ContextView.as_view(), name="farm-ai-assistant-context"),
|
2026-03-29 13:40:23 +03:30
|
|
|
# path("chat/", ChatView.as_view(), name="farm-ai-assistant-chat"),
|
2026-03-27 18:32:49 +03:30
|
|
|
path("chat/task/", ChatTaskCreateView.as_view(), name="farm-ai-assistant-chat-task-create"),
|
|
|
|
|
path("chat/task/<str:task_id>/status/", ChatTaskStatusView.as_view(), name="farm-ai-assistant-chat-task-status"),
|
2026-03-27 18:18:31 +03:30
|
|
|
path("chats/", ChatListCreateView.as_view(), name="farm-ai-assistant-chat-list-create"),
|
|
|
|
|
path("chats/<uuid:conversation_id>/", ChatDetailView.as_view(), name="farm-ai-assistant-chat-detail"),
|
2026-03-25 15:43:00 +03:30
|
|
|
path("chats/<uuid:conversation_id>/messages/", ChatMessagesView.as_view(), name="farm-ai-assistant-chat-messages"),
|
2026-02-25 12:21:53 +03:30
|
|
|
]
|