GlobalConfig – Konfiguracja systemu
GlobalConfig.json to centralny plik konfiguracyjny NoesisPulse – definiuje engine, agentów, brokerów, helperów i wszystkie narzędzia.
Struktura GlobalConfig
GlobalConfig.json dzieli się na cztery główne sekcje: engine (serwer), agents[] (agenci z brokerem i helperem), narzędzia (Telegram, Web Search, Email, Queue) oraz plugin loader.
Poniżej pełna struktura konfiguracji:
Poniżej pełna struktura konfiguracji:
```json
{
"engine": {
"name": "NoesisPulse",
"wsPort": 5000,
"httpPort": 8080,
"bindAddress": "0.0.0.0",
"connectionToken": "...",
"Debug": false
},
"agents": [
{
"id": "master",
"broker": {
"apiUrl": "https://api.llm-provider.com",
"model": "gpt-4",
"maxTokens": 8192,
"maxContextTokens": 900000,
"thinkingLevel": "High",
"temperature": 1.0,
"streamingEnabled": true
},
"helper": {
"mode": "other",
"maxContextBlockChars": 12000,
"compactThreshold": 0.70,
"autoTrigger": { "min": 5, "max": 15 }
},
"telegram": { "enabled": true },
"web_search": { "enabled": true },
"email": { "enabled": true },
"queue": { "enabled": true }
}
]
}
```
Engine – konfiguracja serwera
Sekcja
- name – nazwa instancji (NoesisPulse)
- wsPort – port WebSocket (dla komunikacji z agentem)
- httpPort – port HTTP (dla configUI)
- bindAddress – adres nasłuchu (0.0.0.0 = wszystkie interfejsy)
- connectionToken – token uwierzytelniający połączenia
- Debug – tryb debugowania (logowanie szczegółowe)
engine definiuje podstawowe parametry serwera:- name – nazwa instancji (NoesisPulse)
- wsPort – port WebSocket (dla komunikacji z agentem)
- httpPort – port HTTP (dla configUI)
- bindAddress – adres nasłuchu (0.0.0.0 = wszystkie interfejsy)
- connectionToken – token uwierzytelniający połączenia
- Debug – tryb debugowania (logowanie szczegółowe)
Broker – konfiguracja LLM
Sekcja
- apiUrl – endpoint API dostawcy LLM
- model – nazwa modelu (np. gpt-4, deepseek)
- maxTokens – maksymalna długość odpowiedzi (8192)
- maxContextTokens – maksymalny kontekst (900k tokenów)
- thinkingLevel – poziom myślenia (High = 2048 tokenów)
- temperature – kreatywność modelu (1.0 = balans)
- streamingEnabled – czy odpowiedź ma być strumieniowana
broker definiuje połączenie z modelem językowym:- apiUrl – endpoint API dostawcy LLM
- model – nazwa modelu (np. gpt-4, deepseek)
- maxTokens – maksymalna długość odpowiedzi (8192)
- maxContextTokens – maksymalny kontekst (900k tokenów)
- thinkingLevel – poziom myślenia (High = 2048 tokenów)
- temperature – kreatywność modelu (1.0 = balans)
- streamingEnabled – czy odpowiedź ma być strumieniowana
Helper – konfiguracja wspomagania
Sekcja
- mode – 'Self' (ten sam LLM co Agent) lub 'other' (inny, dedykowany model flash)
- maxContextBlockChars – maksymalny rozmiar context_blocka (12000 znaków)
- compactThreshold – próg kompakcji (70% kontekstu)
- autoTrigger – co ile tur Helper uruchamia się automatycznie (losowo między min=5 a max=15)
helper kontroluje drugiego agenta:- mode – 'Self' (ten sam LLM co Agent) lub 'other' (inny, dedykowany model flash)
- maxContextBlockChars – maksymalny rozmiar context_blocka (12000 znaków)
- compactThreshold – próg kompakcji (70% kontekstu)
- autoTrigger – co ile tur Helper uruchamia się automatycznie (losowo między min=5 a max=15)