FluxbaseAI
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.ai/FluxbaseAI
FluxbaseAI
Section titled “FluxbaseAI”[jvm]
class FluxbaseAI(http: FluxbaseHttpClient)
AI module — chatbots, conversations, and usage. Mirrors the user AI surface of the TS SDK (sdk/src/ai.ts, FluxbaseAI). The WebSocket chat stream is not covered here; use the TS/React SDKs or the /ai/ws protocol directly for streaming chat.
Constructors
Section titled “Constructors”| FluxbaseAI | [jvm] constructor(http: FluxbaseHttpClient) |
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| deleteConversation | [jvm] suspend fun deleteConversation(id: String): FluxbaseResponse<Unit> DELETE /api/v1/ai/conversations/:id — delete a conversation. |
| getChatbot | [jvm] suspend fun getChatbot(id: String): FluxbaseResponse<AIChatbotSummary> GET /api/v1/ai/chatbots/:id — get a chatbot by ID. |
| getConversation | [jvm] suspend fun getConversation(id: String): FluxbaseResponse<AIConversationDetail> GET /api/v1/ai/conversations/:id — conversation with full message history. |
| getUsage | [jvm] suspend fun getUsage(chatbotId: String): FluxbaseResponse<AIUsageSnapshot> GET /api/v1/ai/usage/:chatbotId — per-user daily usage snapshot. |
| listChatbots | [jvm] suspend fun listChatbots(namespace: String? = null): FluxbaseResponse<List<AIChatbotSummary>> GET /api/v1/ai/chatbots — list public/enabled chatbots. |
| listConversations | [jvm] suspend fun listConversations(chatbotId: String? = null, limit: Int? = null, offset: Int? = null): FluxbaseResponse<AIConversationListResult> GET /api/v1/ai/conversations — list the current user’s conversations. |
| lookupChatbot | [jvm] suspend fun lookupChatbot(name: String, namespace: String = "default"): FluxbaseResponse<AIChatbotSummary> GET /api/v1/ai/chatbots/by-name/:name?namespace=… — resolve a chatbot by name. |
| updateConversation | [jvm] suspend fun updateConversation(id: String, request: UpdateConversationRequest): FluxbaseResponse<AIConversationDetail> PATCH /api/v1/ai/conversations/:id — update a conversation (e.g. rename). |