assistant

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package assistant 는 AI 어시스턴트 모듈(nullus-plan#94)이다 — Nullus MCP 조회 도구를 조직이 고른 모델 (Upstage · OpenAI · Anthropic · Gemini · OpenAI 호환 사내 서버)에 물려, 화면에서 자연어로 묻고 답한다. 공급자 · 모델 · API 키는 관리 화면에서 조직마다 등록한다. 설계: docs/11_기능설계/Nullus_AI_어시스턴트_설계.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	// Settings 가 없으면 Pool 과 EncryptionKey 로 Postgres 저장소를 만든다.
	Settings      port.SettingsRepository
	Pool          *pgxpool.Pool
	EncryptionKey []byte
	// ServerURL 은 도구가 부를 API 자신(루프백)이다.
	ServerURL string
	Version   string
}

Deps 는 모듈을 조립하는 데 필요한 것이다.

type Module

type Module struct {
	Chat     *usecase.Chat
	Settings *usecase.SettingsService
}

Module 은 조립된 어시스턴트다. HTTP 핸들러는 main 이 만든다(라우트 배선 검사가 main 에서 본다).

func New

func New(d Deps) *Module

Directories

Path Synopsis
adapter
handler
Package handler 는 AI 어시스턴트의 HTTP 어댑터다 — 상태 조회와 대화.
Package handler 는 AI 어시스턴트의 HTTP 어댑터다 — 상태 조회와 대화.
llm
Package llm 은 모델 API 클라이언트다 — OpenAI 호환 Chat Completions(Upstage · OpenAI · Gemini · 사내 vLLM 등)와 Anthropic Messages.
Package llm 은 모델 API 클라이언트다 — OpenAI 호환 Chat Completions(Upstage · OpenAI · Gemini · 사내 vLLM 등)와 Anthropic Messages.
mcphost
Package mcphost 는 어시스턴트의 도구 호스트다.
Package mcphost 는 어시스턴트의 도구 호스트다.
repository
Package repository 는 어시스턴트 설정의 Postgres 저장소다.
Package repository 는 어시스턴트 설정의 Postgres 저장소다.
Package domain 은 AI 어시스턴트의 대화 규칙이다 — 화면이 보낸 대화의 검증, 모델과 주고받는 메시지, 외부 LLM 으로 나가는 도구 결과의 가리기와 자르기.
Package domain 은 AI 어시스턴트의 대화 규칙이다 — 화면이 보낸 대화의 검증, 모델과 주고받는 메시지, 외부 LLM 으로 나가는 도구 결과의 가리기와 자르기.
Package port 는 AI 어시스턴트가 바깥과 만나는 자리다 — 모델(LLM)과 도구(MCP).
Package port 는 AI 어시스턴트가 바깥과 만나는 자리다 — 모델(LLM)과 도구(MCP).
Package usecase 는 AI 어시스턴트의 에이전트 루프다 — 대화를 모델에 넘기고, 모델이 고른 도구를 질문한 사용자의 권한으로 실행해 결과를 되돌려 주며 답을 만든다.
Package usecase 는 AI 어시스턴트의 에이전트 루프다 — 대화를 모델에 넘기고, 모델이 고른 도구를 질문한 사용자의 권한으로 실행해 결과를 되돌려 주며 답을 만든다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL