Spaces:
Runtime error
Runtime error
from dataclasses import dataclass | |
class ApiRoutes: | |
# user paths | |
USER_HEALTH: str = "/v1/user/health" | |
USER_READ: str = "/v1/user/read" | |
USER_CREATE: str = "/v1/user/create" | |
USER_UPDATE: str = "/v1/user/update" | |
USER_SIGN_IN: str = "/v1/user/signin" | |
USER_CLI_AUTH: str = "/v1/user/cliauth" | |
USER_AUTHENTICATE: str = "/v1/user/authenticate" | |
USER_AUTH_REFRESH: str = "/v1/user/authrefresh" | |
# workspace paths | |
WORKSPACE_HEALTH: str = "/v1/workspace/health" | |
WORKSPACE_CREATE: str = "/v1/workspace/create" | |
WORKSPACE_UPDATE: str = "/v1/workspace/update" | |
WORKSPACE_DELETE: str = "/v1/workspace/delete" | |
WORKSPACE_EVENT_CREATE: str = "/v1/workspace/event/create" | |
WORKSPACE_UPDATE_PRIMARY: str = "/v1/workspace/update/primary" | |
WORKSPACE_READ_PRIMARY: str = "/v1/workspace/read/primary" | |
WORKSPACE_READ_AVAILABLE: str = "/v1/workspace/read/available" | |
# assistant paths | |
ASSISTANT_RUN_CREATE: str = "/v1/assistant/run/create" | |
ASSISTANT_EVENT_CREATE: str = "/v1/assistant/event/create" | |
# prompt paths | |
PROMPT_REGISTRY_SYNC: str = "/v1/prompt/registry/sync" | |
PROMPT_TEMPLATE_SYNC: str = "/v1/prompt/template/sync" | |
# ai paths | |
AI_CONVERSATION_CREATE: str = "/v1/ai/conversation/create" | |
AI_CONVERSATION_CHAT: str = "/v1/ai/conversation/chat" | |
AI_CONVERSATION_CHAT_WS: str = "/v1/ai/conversation/chat_ws" | |
# llm paths | |
OPENAI_CHAT: str = "/v1/llm/openai/chat" | |
OPENAI_EMBEDDING: str = "/v1/llm/openai/embedding" | |