agnes-the-ai-analyst/server
Petr 95358448e6 Add modular LLM connector for Corporate Memory
Replace hardwired Anthropic API calls with a pluggable provider system.
Each deployment configures its AI provider in instance.yaml — switching
between Anthropic, LiteLLM, OpenRouter, or any OpenAI-compatible proxy
is a config change, not a code change.

New connectors/llm/ module:
- StructuredExtractor Protocol with extract_json() interface
- AnthropicExtractor: direct Anthropic SDK with retry + backoff
- OpenAICompatExtractor: any OpenAI-compatible proxy with three-layer
  structured output fallback (json_schema -> json_object -> prompt)
- Configurable structured_output policy (strict/json/auto)
- Custom exception hierarchy (auth/rate_limit/timeout/format/refusal)
- Zero secrets in logs: no API keys, prompts, or responses logged

Reviewed by: Google Gemini, Claude Sonnet, OpenAI GPT-5.4.
Security audit passed with all critical findings resolved.
2026-03-23 12:08:33 +01:00
..
bin Add modular LLM connector for Corporate Memory 2026-03-23 12:08:33 +01:00
deploy.sh Add modular LLM connector for Corporate Memory 2026-03-23 12:08:33 +01:00
limits-users.conf OSS cleanup: remove internal references, harden deployment, add config env interpolation 2026-03-09 07:59:57 +01:00
migrate-home-to-disk.sh Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
migrate-to-v2.sh Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
setup-snapshot-schedule.sh Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
setup.sh Security fixes: sanitize dev_docs, harden sudoers and config validation 2026-03-09 08:06:45 +01:00
sudoers-deploy Update paths in docs and sudoers after services/ extraction 2026-03-09 13:02:13 +01:00
sudoers-webapp Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
webapp-nginx.conf Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00
webapp-setup.sh Security fixes: sanitize dev_docs, harden sudoers and config validation 2026-03-09 08:06:45 +01:00
webapp.service Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00