Documentation
¶
Overview ¶
Package handler 는 AI 어시스턴트의 HTTP 어댑터다 — 상태 조회와 대화.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantHandler ¶
type AssistantHandler struct {
// contains filtered or unexported fields
}
func NewAssistantHandler ¶
func NewAssistantHandler(chat chatter) *AssistantHandler
func (*AssistantHandler) GetStatus ¶
func (h *AssistantHandler) GetStatus(c echo.Context) error
GetStatus 는 요청자 조직의 어시스턴트가 켜져 있는지다. 꺼져 있으면 모델 이름도 알리지 않는다.
func (*AssistantHandler) RegisterRoutes ¶
func (h *AssistantHandler) RegisterRoutes(g *echo.Group)
RegisterRoutes 는 /api/v1/assistant 그룹에 붙는다. 그룹은 인증만 요구한다 — 무엇을 볼 수 있는지는 도구가 부르는 API 가 정한다.
type AuditSink ¶
type AuditSink interface {
Log(ctx context.Context, entry audit.AuditEntry) error
}
AuditSink 는 설정 변경을 남기는 감사 로그다. 없어도 된다.
type SettingsHandler ¶
type SettingsHandler struct {
// contains filtered or unexported fields
}
SettingsHandler 는 관리자가 조직의 모델 공급자 · 모델 · API 키를 등록하는 API 다. admin 그룹에 붙는다.
func NewSettingsHandler ¶
func NewSettingsHandler(svc settingsService, auditSink AuditSink) *SettingsHandler
func (*SettingsHandler) RegisterRoutes ¶
func (h *SettingsHandler) RegisterRoutes(g *echo.Group)
Click to show internal directories.
Click to hide internal directories.