refactor: overhaul agent workflow engine with scoped tool execution, configurable LLM model profiles, and enhanced state management.

This commit is contained in:
2026-07-22 18:41:45 +07:00
parent 369985ae9c
commit 66385746f6
32 changed files with 1454 additions and 171 deletions

View File

@@ -1,7 +1,13 @@
server:
port: 9332
shutdown: graceful
spring:
devtools:
restart:
quiet-period: 1000ms
poll-interval: 2000ms
mvc:
async:
request-timeout: 3600000
@@ -23,7 +29,7 @@ spring:
sse:
connections:
loyalty:
url: ${MCP_SERVER_URL:http://localhost:9331}
url: ${MCP_SERVER_URL:http://localhost:9331/sse}
logging:
pattern:
@@ -32,3 +38,24 @@ logging:
org.springframework.ai: INFO
dev.sonpx.loyalty: DEBUG
root: warn
agent:
models:
chat:
base-url: ${CHAT_OLLAMA_BASE_URL:http://localhost:11434}
model: ${CHAT_MODEL:qwen2.5:1.5b}
temperature: ${CHAT_MODEL_TEMPERATURE:0.7}
num-ctx: ${CHAT_MODEL_NUM_CTX:8192}
disable-thinking: ${CHAT_MODEL_DISABLE_THINKING:true}
query:
base-url: ${QUERY_OLLAMA_BASE_URL:http://192.168.99.10:11434}
model: ${QUERY_MODEL:qwen3.5:4b}
temperature: ${QUERY_MODEL_TEMPERATURE:0.3}
num-ctx: ${QUERY_MODEL_NUM_CTX:32768}
disable-thinking: ${QUERY_MODEL_DISABLE_THINKING:false}
creator:
base-url: ${CREATOR_OLLAMA_BASE_URL:http://192.168.99.10:11434}
model: ${CREATOR_MODEL:qwen3.5:4b}
temperature: ${CREATOR_MODEL_TEMPERATURE:0.2}
num-ctx: ${CREATOR_MODEL_NUM_CTX:32768}
disable-thinking: ${CREATOR_MODEL_DISABLE_THINKING:false}