feat(handler,cmd): 实现阶段 5 HTTP 服务 — 处理器、入口程序、配置文件

This commit is contained in:
hhs
2026-06-10 15:18:06 +08:00
parent f532b21a7a
commit cdbaefecf8
7 changed files with 410 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
ai:
agent:
config:
tables:
myAgent:
app-name: myAgent
agent:
agent-id: "10001"
agent-name: "my-assistant"
agent-desc: "通用 AI 助手"
module:
ai-api:
base-url: ${OPENAI_BASE_URL}
api-key: ${OPENAI_API_KEY}
chat-model:
model: "gpt-4"
agents:
- name: "assistant"
description: "通用助手"
instruction: |
你是一个有帮助的 AI 助手。请用中文回答用户的问题。
runner:
agent-name: "assistant"

View File

@@ -1,14 +1,13 @@
app:
name: goloom
env: development
port: ${SERVER_PORT:-8091}
env: local
server:
addr: ":8091"
llm:
base_url: ${LLM_BASE_URL}
api_key: ${LLM_API_KEY}
model: ${LLM_MODEL:-deepseek-chat}
timeout: 30s
max_retries: 3
request-timeout: 5m
agent:
config_dir: configs/agent
config-paths:
- configs/agent/only-one-agent.yaml