feat(llm): 实现阶段 3 LLM 集成 — OpenAI 客户端与 ChatModel 适配器
All checks were successful
GoLoom CI / Lint (push) Successful in 21m3s
GoLoom CI / Test (push) Successful in 9m20s
GoLoom CI / Build (push) Successful in 9m27s

This commit is contained in:
hhs
2026-06-10 13:46:38 +08:00
parent 85a3d1e27d
commit 9d04b0b200
3 changed files with 402 additions and 6 deletions

View File

@@ -2,10 +2,7 @@ package model
import "context"
// ============================================================
// 核心接口
// ============================================================
// Tool 外部工具接口
type Tool interface {
Name() string
@@ -33,10 +30,7 @@ type Runner interface {
Stream(userID, sessionID string, content ChatContent) (<-chan string, <-chan error)
}
// ============================================================
// 注册与存储接口
// ============================================================
// RegisteredAgent 已注册的 Agent 信息
type RegisteredAgent struct {
AppName string