Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRequest ¶
type ChatRequest struct {
ConnectionID string `json:"connection_id" binding:"required"`
Question string `json:"question" binding:"required"`
History []llm.ChatMessage `json:"history"`
}
type ChatResponse ¶
type ConnectionResponse ¶
type CreateConnectionRequest ¶
type CreateConnectionRequest struct {
Name string `json:"name" binding:"required"`
DBType string `json:"db_type" binding:"required,oneof=postgres mysql"`
Host string `json:"host" binding:"required"`
Port int `json:"port" binding:"required"`
Database string `json:"database" binding:"required"`
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.