eq-chatbot-core 4.2.0__tar.gz → 4.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/CHANGELOG.md +18 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/PKG-INFO +3 -3
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/README.md +2 -2
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/RELEASE_NOTES.md +18 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/anthropic_provider.py +14 -78
- eq_chatbot_core-4.3.0/src/eq_chatbot_core/providers/anthropic_shared.py +188 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/base.py +22 -4
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/langdock_provider.py +145 -24
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openai_compatible.py +4 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/version.py +1 -1
- eq_chatbot_core-4.2.0/src/eq_chatbot_core/providers/anthropic_shared.py +0 -92
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/.gitignore +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/LICENSE +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/pyproject.toml +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/cli.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/data/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/data/config.toml.example +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/mcp/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/mcp/client.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/mcp/streamable_http.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/ionos_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/litellm_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/local_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/mammouth_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/melious_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openai_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openrouter_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/param_learning.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/privatemode_provider.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/stream_accumulator.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/temperature_constraints.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/py.typed +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/rag/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/rag/chunker.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/rag/context_manager.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/rag/embedder.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/rag/retriever.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/abc.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/contracts.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/factory.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/mock.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/elevenlabs.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/gemini_live.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/openai.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/websocket_client.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/encryption.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/file_validator.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/injection.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/rate_limit.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/app.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/auth.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/lifecycle.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/models.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/server/streaming.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/capability_catalog.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/document_extractor.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/error_handler.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/knowledge_service.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/__init__.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/config.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/image.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/pdf.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/secret_scrub.py +0 -0
- {eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/utils/url_validation.py +0 -0
|
@@ -5,6 +5,24 @@ All notable changes to eq-chatbot-core will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.3.0] - 2026-10-12
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Built-in web search: `web_search=True` on `chat_completion` / `stream_completion`. Anthropic and LangDock's `anthropic` backend add Anthropic's server-side search tool (`anthropic_shared.WEB_SEARCH_TOOL`, `web_search_20250305`, at most 5 searches per request); the provider runs and bills the search. Every other provider ignores the flag. `supports_native_web_search()` says which provider has one. Verified live 12.10.2026 with claude-haiku-5-5, directly and through LangDock.
|
|
13
|
+
- `check_model(..., web_search=True)` and `ModelCheck.web_search`: where the provider has a built-in search, one more request with it switched on (the model is not asked to search). `"refused"` usually means the account has web search switched off.
|
|
14
|
+
- `LangDockProvider.agent_info()`: the agent's name, model and switches (web search, image generation, extended thinking, canvas, knowledge, number of actions) from LangDock's Agent Get API; instructions, description and owner are left out.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- LangDock agent answers no longer contain source markers such as `【toolu_vrtx_…-0】`, also when a marker is split across deltas, and text written after a tool step starts a new paragraph instead of running into the previous sentence ("…belegt sind.Impressum und …").
|
|
19
|
+
|
|
20
|
+
## [4.2.1] - 2026-10-12
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- LangDock's `anthropic` backend now converts a tool call history to the Messages API format, as `AnthropicProvider` always did: an assistant message with `tool_calls` becomes `tool_use` blocks, a `tool` message becomes a user message with a `tool_result` block. Before, the history was passed through unchanged, so every request after the model's first tool call was refused with HTTP 400 (`messages[n].content`: expected string or array, received null). A chat with a Claude model through LangDock failed as soon as the model used a tool. The conversion moved to `anthropic_shared.convert_messages`; `AnthropicProvider._convert_messages` keeps its name and delegates. Verified live 12.10.2026 against LangDock with claude-haiku-5-5.
|
|
25
|
+
|
|
8
26
|
## [4.2.0] - 2026-10-12
|
|
9
27
|
|
|
10
28
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: eq-chatbot-core
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.3.0
|
|
4
4
|
Summary: Core library for LLM chatbot integration with multi-provider support (OpenAI, Anthropic, LangDock, OpenRouter, Mammouth, LiteLLM, IONOS, Melious, Privatemode, Local)
|
|
5
5
|
Project-URL: Homepage, https://www.ownerp.com
|
|
6
6
|
Project-URL: Documentation, https://github.com/equitania/eq-chatbot-core
|
|
@@ -83,7 +83,7 @@ Originally extracted from an Odoo 18 chatbot integration; works standalone witho
|
|
|
83
83
|
|
|
84
84
|
- **Multi-Provider Support** — OpenAI, Anthropic, LangDock, OpenRouter, Mammouth AI, LiteLLM gateway, IONOS AI Model Hub (EU-hosted), Melious.ai (sovereign EU), Privatemode.ai (end-to-end encrypted, EU), Local (LM Studio/Ollama)
|
|
85
85
|
- **Unified API** — same interface regardless of provider
|
|
86
|
-
- **No built-in model IDs** (v4.0.0) — the model is always the caller's; whether a model accepts `temperature`, `max_completion_tokens` or `reasoning_effort` is learned from the provider at runtime; output limits are read from the provider's own rejection (`probe_output_limit()`, v4.1.0) and requests are capped to them; `check_model()` (v4.2.0) finds out before the first chat what a model accepts — text, tools, images — with a few small requests shaped like a chat turn, tries adjustments for rejections no rule knows, and returns what to persist
|
|
86
|
+
- **No built-in model IDs** (v4.0.0) — the model is always the caller's; whether a model accepts `temperature`, `max_completion_tokens` or `reasoning_effort` is learned from the provider at runtime; output limits are read from the provider's own rejection (`probe_output_limit()`, v4.1.0) and requests are capped to them; `check_model()` (v4.2.0) finds out before the first chat what a model accepts — text, tools, images — with a few small requests shaped like a chat turn, tries adjustments for rejections no rule knows, and returns what to persist; built-in web search with `web_search=True` where the provider has one (v4.3.0, Anthropic and LangDock's anthropic backend)
|
|
87
87
|
- **Security** — Fernet encryption, prompt-injection detection (direct user input + indirect tool/RAG content), file-upload validation, race-free token-bucket rate limiting
|
|
88
88
|
- **RAG Pipeline** — chunking, embeddings (incl. Melious.ai and IONOS embedders), Qdrant-backed retrieval, context-window management
|
|
89
89
|
- **MCP Client** — Streamable HTTP, legacy HTTP/SSE and stdio transports, hardened against DNS rebinding, SSRF, and subprocess env injection; LAN mode for servers on the intranet
|
|
@@ -287,7 +287,7 @@ Ursprünglich aus einer Odoo-18-Chatbot-Integration extrahiert; funktioniert sta
|
|
|
287
287
|
|
|
288
288
|
- **Multi-Provider-Unterstützung** — OpenAI, Anthropic, LangDock, OpenRouter, Mammouth AI, LiteLLM-Gateway, IONOS AI Model Hub (EU-gehostet), Melious.ai (souverän EU), Privatemode.ai (Ende-zu-Ende-verschlüsselt, EU), Local (LM Studio/Ollama)
|
|
289
289
|
- **Einheitliche API** — gleiche Schnittstelle unabhängig vom Provider
|
|
290
|
-
- **Keine eingebauten Modell-IDs** (v4.0.0) — das Modell kommt immer vom Aufrufer; ob ein Modell `temperature`, `max_completion_tokens` oder `reasoning_effort` annimmt, lernt die Bibliothek zur Laufzeit vom Anbieter; `check_model()` (v4.2.0) prüft vor dem ersten Chat mit wenigen kleinen Anfragen in Chat-Form, was ein Modell annimmt – Text, Werkzeuge, Bilder –, probiert bei unbekannten Ablehnungen selbst Anpassungen aus und liefert, was gespeichert werden sollte
|
|
290
|
+
- **Keine eingebauten Modell-IDs** (v4.0.0) — das Modell kommt immer vom Aufrufer; ob ein Modell `temperature`, `max_completion_tokens` oder `reasoning_effort` annimmt, lernt die Bibliothek zur Laufzeit vom Anbieter; `check_model()` (v4.2.0) prüft vor dem ersten Chat mit wenigen kleinen Anfragen in Chat-Form, was ein Modell annimmt – Text, Werkzeuge, Bilder –, probiert bei unbekannten Ablehnungen selbst Anpassungen aus und liefert, was gespeichert werden sollte; eingebaute Websuche mit `web_search=True`, wo der Anbieter eine hat (v4.3.0, Anthropic und LangDocks anthropic-Backend)
|
|
291
291
|
- **Sicherheit** — Fernet-Verschlüsselung, Prompt-Injection-Erkennung (direkte Nutzereingaben + indirekte Tool-/RAG-Inhalte), File-Upload-Validierung, Race-freies Token-Bucket-Rate-Limiting
|
|
292
292
|
- **RAG-Pipeline** — Chunking, Embeddings (inkl. Melious.ai- und IONOS-Embedder), Qdrant-basiertes Retrieval, Context-Window-Management
|
|
293
293
|
- **MCP-Client** — Streamable HTTP, älteres HTTP/SSE und stdio als Transports, gehärtet gegen DNS-Rebinding, SSRF und Subprocess-Env-Injection; LAN-Modus für Server im Intranet
|
|
@@ -22,7 +22,7 @@ Originally extracted from an Odoo 18 chatbot integration; works standalone witho
|
|
|
22
22
|
|
|
23
23
|
- **Multi-Provider Support** — OpenAI, Anthropic, LangDock, OpenRouter, Mammouth AI, LiteLLM gateway, IONOS AI Model Hub (EU-hosted), Melious.ai (sovereign EU), Privatemode.ai (end-to-end encrypted, EU), Local (LM Studio/Ollama)
|
|
24
24
|
- **Unified API** — same interface regardless of provider
|
|
25
|
-
- **No built-in model IDs** (v4.0.0) — the model is always the caller's; whether a model accepts `temperature`, `max_completion_tokens` or `reasoning_effort` is learned from the provider at runtime; output limits are read from the provider's own rejection (`probe_output_limit()`, v4.1.0) and requests are capped to them; `check_model()` (v4.2.0) finds out before the first chat what a model accepts — text, tools, images — with a few small requests shaped like a chat turn, tries adjustments for rejections no rule knows, and returns what to persist
|
|
25
|
+
- **No built-in model IDs** (v4.0.0) — the model is always the caller's; whether a model accepts `temperature`, `max_completion_tokens` or `reasoning_effort` is learned from the provider at runtime; output limits are read from the provider's own rejection (`probe_output_limit()`, v4.1.0) and requests are capped to them; `check_model()` (v4.2.0) finds out before the first chat what a model accepts — text, tools, images — with a few small requests shaped like a chat turn, tries adjustments for rejections no rule knows, and returns what to persist; built-in web search with `web_search=True` where the provider has one (v4.3.0, Anthropic and LangDock's anthropic backend)
|
|
26
26
|
- **Security** — Fernet encryption, prompt-injection detection (direct user input + indirect tool/RAG content), file-upload validation, race-free token-bucket rate limiting
|
|
27
27
|
- **RAG Pipeline** — chunking, embeddings (incl. Melious.ai and IONOS embedders), Qdrant-backed retrieval, context-window management
|
|
28
28
|
- **MCP Client** — Streamable HTTP, legacy HTTP/SSE and stdio transports, hardened against DNS rebinding, SSRF, and subprocess env injection; LAN mode for servers on the intranet
|
|
@@ -226,7 +226,7 @@ Ursprünglich aus einer Odoo-18-Chatbot-Integration extrahiert; funktioniert sta
|
|
|
226
226
|
|
|
227
227
|
- **Multi-Provider-Unterstützung** — OpenAI, Anthropic, LangDock, OpenRouter, Mammouth AI, LiteLLM-Gateway, IONOS AI Model Hub (EU-gehostet), Melious.ai (souverän EU), Privatemode.ai (Ende-zu-Ende-verschlüsselt, EU), Local (LM Studio/Ollama)
|
|
228
228
|
- **Einheitliche API** — gleiche Schnittstelle unabhängig vom Provider
|
|
229
|
-
- **Keine eingebauten Modell-IDs** (v4.0.0) — das Modell kommt immer vom Aufrufer; ob ein Modell `temperature`, `max_completion_tokens` oder `reasoning_effort` annimmt, lernt die Bibliothek zur Laufzeit vom Anbieter; `check_model()` (v4.2.0) prüft vor dem ersten Chat mit wenigen kleinen Anfragen in Chat-Form, was ein Modell annimmt – Text, Werkzeuge, Bilder –, probiert bei unbekannten Ablehnungen selbst Anpassungen aus und liefert, was gespeichert werden sollte
|
|
229
|
+
- **Keine eingebauten Modell-IDs** (v4.0.0) — das Modell kommt immer vom Aufrufer; ob ein Modell `temperature`, `max_completion_tokens` oder `reasoning_effort` annimmt, lernt die Bibliothek zur Laufzeit vom Anbieter; `check_model()` (v4.2.0) prüft vor dem ersten Chat mit wenigen kleinen Anfragen in Chat-Form, was ein Modell annimmt – Text, Werkzeuge, Bilder –, probiert bei unbekannten Ablehnungen selbst Anpassungen aus und liefert, was gespeichert werden sollte; eingebaute Websuche mit `web_search=True`, wo der Anbieter eine hat (v4.3.0, Anthropic und LangDocks anthropic-Backend)
|
|
230
230
|
- **Sicherheit** — Fernet-Verschlüsselung, Prompt-Injection-Erkennung (direkte Nutzereingaben + indirekte Tool-/RAG-Inhalte), File-Upload-Validierung, Race-freies Token-Bucket-Rate-Limiting
|
|
231
231
|
- **RAG-Pipeline** — Chunking, Embeddings (inkl. Melious.ai- und IONOS-Embedder), Qdrant-basiertes Retrieval, Context-Window-Management
|
|
232
232
|
- **MCP-Client** — Streamable HTTP, älteres HTTP/SSE und stdio als Transports, gehärtet gegen DNS-Rebinding, SSRF und Subprocess-Env-Injection; LAN-Modus für Server im Intranet
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Release Notes
|
|
2
2
|
|
|
3
|
+
## Version 4.3.0 (12.10.2026)
|
|
4
|
+
|
|
5
|
+
### [ADD]
|
|
6
|
+
|
|
7
|
+
- **Eingebaute Websuche:** `web_search=True` bei `chat_completion` und `stream_completion`. Bei Anthropic und LangDocks `anthropic`-Backend wird Anthropics Suchwerkzeug angehängt (höchstens 5 Suchen je Anfrage). Der Anbieter sucht selbst und rechnet die Suchen ab. Alle anderen Anbieter ignorieren den Schalter, `supports_native_web_search()` sagt, wer ihn kennt. Live geprüft am 12.10.2026 mit claude-haiku-5-5, direkt und über LangDock.
|
|
8
|
+
- **Die Modellprüfung prüft die Websuche mit:** Wo es eine eingebaute Suche gibt, schickt `check_model` eine weitere Anfrage mit eingeschalteter Suche. Das Modell wird nicht zum Suchen aufgefordert. Ergebnis in `ModelCheck.web_search`; „abgelehnt“ heißt meist, dass die Websuche im Konto abgeschaltet ist.
|
|
9
|
+
- **`LangDockProvider.agent_info()`** liest Name, Modell und Schalter eines Agenten aus LangDock: Websuche, Bilderzeugung, erweitertes Nachdenken, Canvas, Wissensordner, Anzahl der Aktionen. Anweisungen, Beschreibung und Besitzer bleiben draußen.
|
|
10
|
+
|
|
11
|
+
### [FIX]
|
|
12
|
+
|
|
13
|
+
- **Agenten-Antworten ohne Quellenmarken:** Marken wie `【toolu_vrtx_…-0】` werden entfernt, auch wenn sie über mehrere Abschnitte verteilt ankommen. Schreibt der Agent nach einem Werkzeugschritt weiter, beginnt ein neuer Absatz, statt dass der Text am vorigen Satz klebt („…belegt sind.Impressum und …“).
|
|
14
|
+
|
|
15
|
+
## Version 4.2.1 (12.10.2026)
|
|
16
|
+
|
|
17
|
+
### [FIX]
|
|
18
|
+
|
|
19
|
+
- **Claude über LangDock mit Werkzeugen.** Der LangDock-Weg zu Anthropic-Modellen gab den Gesprächsverlauf unverändert im OpenAI-Format weiter. Sobald das Modell ein Werkzeug benutzt hatte, lehnte LangDock jede weitere Anfrage mit HTTP 400 ab („expected string or array, received null“). Der Verlauf wird jetzt wie bei der direkten Anthropic-Anbindung umgewandelt: Werkzeugaufrufe werden zu `tool_use`-Blöcken, Werkzeugergebnisse zu `tool_result`-Blöcken. Live geprüft am 12.10.2026 mit claude-haiku-5-5 über LangDock.
|
|
20
|
+
|
|
3
21
|
## Version 4.2.0 (12.10.2026)
|
|
4
22
|
|
|
5
23
|
### [ADD]
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/anthropic_provider.py
RENAMED
|
@@ -12,6 +12,8 @@ from typing import Any
|
|
|
12
12
|
from eq_chatbot_core.providers import param_learning
|
|
13
13
|
from eq_chatbot_core.providers.anthropic_shared import (
|
|
14
14
|
ANTHROPIC_LEARNABLE,
|
|
15
|
+
add_web_search,
|
|
16
|
+
convert_messages,
|
|
15
17
|
create_message,
|
|
16
18
|
list_anthropic_models,
|
|
17
19
|
open_message_stream,
|
|
@@ -186,84 +188,8 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
186
188
|
return blocks, filtered_messages
|
|
187
189
|
|
|
188
190
|
def _convert_messages(self, messages: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
Key conversions:
|
|
193
|
-
- assistant messages with tool_calls -> content with tool_use blocks
|
|
194
|
-
- tool messages -> user messages with tool_result content blocks
|
|
195
|
-
"""
|
|
196
|
-
converted = []
|
|
197
|
-
|
|
198
|
-
for msg in messages:
|
|
199
|
-
role = msg.get("role")
|
|
200
|
-
content = msg.get("content", "")
|
|
201
|
-
|
|
202
|
-
if role == "assistant" and msg.get("tool_calls"):
|
|
203
|
-
# Convert assistant message with tool_calls to Anthropic format
|
|
204
|
-
content_blocks = []
|
|
205
|
-
|
|
206
|
-
# Add text content if present
|
|
207
|
-
if content:
|
|
208
|
-
content_blocks.append({"type": "text", "text": content})
|
|
209
|
-
|
|
210
|
-
# Add tool_use blocks for each tool call
|
|
211
|
-
for tool_call in msg.get("tool_calls", []):
|
|
212
|
-
func = tool_call.get("function", {})
|
|
213
|
-
arguments = func.get("arguments", "{}")
|
|
214
|
-
|
|
215
|
-
# Parse arguments - could be string or dict
|
|
216
|
-
if isinstance(arguments, str):
|
|
217
|
-
try:
|
|
218
|
-
parsed_args = json.loads(arguments)
|
|
219
|
-
except json.JSONDecodeError:
|
|
220
|
-
parsed_args = {"raw": arguments}
|
|
221
|
-
else:
|
|
222
|
-
parsed_args = arguments
|
|
223
|
-
|
|
224
|
-
content_blocks.append(
|
|
225
|
-
{
|
|
226
|
-
"type": "tool_use",
|
|
227
|
-
"id": tool_call.get("id", ""),
|
|
228
|
-
"name": func.get("name", ""),
|
|
229
|
-
"input": parsed_args,
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
converted.append(
|
|
234
|
-
{
|
|
235
|
-
"role": "assistant",
|
|
236
|
-
"content": content_blocks,
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
|
|
240
|
-
elif role == "tool":
|
|
241
|
-
# Convert tool message to user message with tool_result block
|
|
242
|
-
tool_call_id = msg.get("tool_call_id", "")
|
|
243
|
-
|
|
244
|
-
# Handle content that might be JSON or plain text
|
|
245
|
-
result_content = content
|
|
246
|
-
if isinstance(content, dict):
|
|
247
|
-
result_content = json.dumps(content)
|
|
248
|
-
|
|
249
|
-
converted.append(
|
|
250
|
-
{
|
|
251
|
-
"role": "user",
|
|
252
|
-
"content": [
|
|
253
|
-
{
|
|
254
|
-
"type": "tool_result",
|
|
255
|
-
"tool_use_id": tool_call_id,
|
|
256
|
-
"content": result_content,
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
}
|
|
260
|
-
)
|
|
261
|
-
|
|
262
|
-
else:
|
|
263
|
-
# Pass through user/assistant messages as-is
|
|
264
|
-
converted.append(msg)
|
|
265
|
-
|
|
266
|
-
return converted
|
|
191
|
+
"""Convert OpenAI-style messages to Anthropic format (see ``anthropic_shared.convert_messages``)."""
|
|
192
|
+
return convert_messages(messages)
|
|
267
193
|
|
|
268
194
|
def _convert_tools_to_anthropic(self, tools: list[dict[str, Any]] | None) -> list[dict[str, Any]] | None:
|
|
269
195
|
"""Convert OpenAI-style tools to Anthropic format."""
|
|
@@ -291,6 +217,8 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
291
217
|
temperature: float = 0.7,
|
|
292
218
|
max_tokens: int | None = None,
|
|
293
219
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
220
|
+
*,
|
|
221
|
+
web_search: bool = False,
|
|
294
222
|
**kwargs: Any,
|
|
295
223
|
) -> LLMResponse:
|
|
296
224
|
"""Send a chat completion request to Anthropic with retry on overload."""
|
|
@@ -317,6 +245,7 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
317
245
|
|
|
318
246
|
if anthropic_tools:
|
|
319
247
|
params["tools"] = anthropic_tools
|
|
248
|
+
add_web_search(params, web_search)
|
|
320
249
|
|
|
321
250
|
params.update(kwargs)
|
|
322
251
|
|
|
@@ -387,6 +316,8 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
387
316
|
temperature: float = 0.7,
|
|
388
317
|
max_tokens: int | None = None,
|
|
389
318
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
319
|
+
*,
|
|
320
|
+
web_search: bool = False,
|
|
390
321
|
**kwargs: Any,
|
|
391
322
|
) -> Iterator[StreamChunk]:
|
|
392
323
|
"""Stream a chat completion response from Anthropic with retry on overload."""
|
|
@@ -413,6 +344,7 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
413
344
|
|
|
414
345
|
if anthropic_tools:
|
|
415
346
|
params["tools"] = anthropic_tools
|
|
347
|
+
add_web_search(params, web_search)
|
|
416
348
|
|
|
417
349
|
params.update(kwargs)
|
|
418
350
|
|
|
@@ -542,6 +474,10 @@ class AnthropicProvider(BaseLLMProvider):
|
|
|
542
474
|
if last_error:
|
|
543
475
|
raise self._handle_error(last_error) from last_error
|
|
544
476
|
|
|
477
|
+
def supports_native_web_search(self) -> bool:
|
|
478
|
+
"""The Messages API's server-side web search (``anthropic_shared.WEB_SEARCH_TOOL``)."""
|
|
479
|
+
return True
|
|
480
|
+
|
|
545
481
|
def _limit_scope(self) -> str | None:
|
|
546
482
|
return self._learning_scope(self._endpoint())
|
|
547
483
|
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"""Helpers shared by AnthropicProvider and LangDock's ``anthropic`` backend.
|
|
2
|
+
|
|
3
|
+
Whether a model takes ``temperature`` is learned from the Messages API's own
|
|
4
|
+
rejection (newer models answer "`temperature` is deprecated for this model.")
|
|
5
|
+
and remembered per endpoint and model in ``param_learning``. ``max_tokens`` is
|
|
6
|
+
mandatory in this API and is never learned here. Only ``temperature`` is
|
|
7
|
+
learnable: ``reasoning_effort`` is not sent on these paths.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import json
|
|
13
|
+
import logging
|
|
14
|
+
from contextlib import ExitStack
|
|
15
|
+
from typing import Any
|
|
16
|
+
|
|
17
|
+
from eq_chatbot_core.providers import param_learning
|
|
18
|
+
|
|
19
|
+
ANTHROPIC_LEARNABLE: tuple[str, ...] = ("temperature",)
|
|
20
|
+
|
|
21
|
+
# Anthropic's server-side web search. The model decides when to search; results
|
|
22
|
+
# and citations stay inside the provider's answer, nothing is executed here.
|
|
23
|
+
# Billed per search by the provider; ``max_uses`` caps one request. The newer
|
|
24
|
+
# version tag (web_search_20260209) is refused by LangDock (checked 12.10.2026).
|
|
25
|
+
WEB_SEARCH_TOOL: dict[str, Any] = {"type": "web_search_20250305", "name": "web_search", "max_uses": 5}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def add_web_search(params: dict[str, Any], enabled: Any) -> None:
|
|
29
|
+
"""Append the web search server tool to a Messages API request when ``enabled``."""
|
|
30
|
+
if enabled:
|
|
31
|
+
params["tools"] = [*params.get("tools", []), dict(WEB_SEARCH_TOOL)]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def convert_messages(messages: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
35
|
+
"""Convert OpenAI-style messages to the Messages API format.
|
|
36
|
+
|
|
37
|
+
- assistant messages with tool_calls -> content with tool_use blocks
|
|
38
|
+
- tool messages -> user messages with tool_result content blocks
|
|
39
|
+
|
|
40
|
+
Callers keep one OpenAI-shaped history for every provider; this is where it
|
|
41
|
+
becomes Anthropic's. Without it a second turn after a tool call is refused
|
|
42
|
+
(``content`` is null, ``role`` "tool" does not exist in this API).
|
|
43
|
+
"""
|
|
44
|
+
converted = []
|
|
45
|
+
|
|
46
|
+
for msg in messages:
|
|
47
|
+
role = msg.get("role")
|
|
48
|
+
content = msg.get("content", "")
|
|
49
|
+
|
|
50
|
+
if role == "assistant" and msg.get("tool_calls"):
|
|
51
|
+
# Convert assistant message with tool_calls to Anthropic format
|
|
52
|
+
content_blocks = []
|
|
53
|
+
|
|
54
|
+
# Add text content if present
|
|
55
|
+
if content:
|
|
56
|
+
content_blocks.append({"type": "text", "text": content})
|
|
57
|
+
|
|
58
|
+
# Add tool_use blocks for each tool call
|
|
59
|
+
for tool_call in msg.get("tool_calls", []):
|
|
60
|
+
func = tool_call.get("function", {})
|
|
61
|
+
arguments = func.get("arguments", "{}")
|
|
62
|
+
|
|
63
|
+
# Parse arguments - could be string or dict
|
|
64
|
+
if isinstance(arguments, str):
|
|
65
|
+
try:
|
|
66
|
+
parsed_args = json.loads(arguments)
|
|
67
|
+
except json.JSONDecodeError:
|
|
68
|
+
parsed_args = {"raw": arguments}
|
|
69
|
+
else:
|
|
70
|
+
parsed_args = arguments
|
|
71
|
+
|
|
72
|
+
content_blocks.append(
|
|
73
|
+
{
|
|
74
|
+
"type": "tool_use",
|
|
75
|
+
"id": tool_call.get("id", ""),
|
|
76
|
+
"name": func.get("name", ""),
|
|
77
|
+
"input": parsed_args,
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
converted.append(
|
|
82
|
+
{
|
|
83
|
+
"role": "assistant",
|
|
84
|
+
"content": content_blocks,
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
elif role == "tool":
|
|
89
|
+
# Convert tool message to user message with tool_result block
|
|
90
|
+
tool_call_id = msg.get("tool_call_id", "")
|
|
91
|
+
|
|
92
|
+
# Handle content that might be JSON or plain text
|
|
93
|
+
result_content = content
|
|
94
|
+
if isinstance(content, dict):
|
|
95
|
+
result_content = json.dumps(content)
|
|
96
|
+
|
|
97
|
+
converted.append(
|
|
98
|
+
{
|
|
99
|
+
"role": "user",
|
|
100
|
+
"content": [
|
|
101
|
+
{
|
|
102
|
+
"type": "tool_result",
|
|
103
|
+
"tool_use_id": tool_call_id,
|
|
104
|
+
"content": result_content,
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
else:
|
|
111
|
+
# Pass through user/assistant messages as-is
|
|
112
|
+
converted.append(msg)
|
|
113
|
+
|
|
114
|
+
return converted
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def create_message(client: Any, params: dict[str, Any], *, base_url: str, provider: str, logger: logging.Logger) -> Any:
|
|
118
|
+
"""``client.messages.create(**params)``, retried once without a rejected temperature."""
|
|
119
|
+
return param_learning.call_with_learning(
|
|
120
|
+
lambda: client.messages.create(**params),
|
|
121
|
+
base_url,
|
|
122
|
+
params,
|
|
123
|
+
provider=provider,
|
|
124
|
+
logger=logger,
|
|
125
|
+
only=ANTHROPIC_LEARNABLE,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def open_message_stream(
|
|
130
|
+
stack: ExitStack,
|
|
131
|
+
client: Any,
|
|
132
|
+
params: dict[str, Any],
|
|
133
|
+
*,
|
|
134
|
+
base_url: str,
|
|
135
|
+
provider: str,
|
|
136
|
+
logger: logging.Logger,
|
|
137
|
+
) -> Any:
|
|
138
|
+
"""Enter ``client.messages.stream(**params)`` on ``stack``, with the same retry rule.
|
|
139
|
+
|
|
140
|
+
The SDK sends the request when the stream manager is entered, before any
|
|
141
|
+
event is read, so a retry never duplicates output already yielded.
|
|
142
|
+
"""
|
|
143
|
+
return param_learning.call_with_learning(
|
|
144
|
+
lambda: stack.enter_context(client.messages.stream(**params)),
|
|
145
|
+
base_url,
|
|
146
|
+
params,
|
|
147
|
+
provider=provider,
|
|
148
|
+
logger=logger,
|
|
149
|
+
only=ANTHROPIC_LEARNABLE,
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def capability_supported(capabilities: Any, name: str) -> bool | None:
|
|
154
|
+
"""``capabilities.<name>.supported`` from the Models API, or ``None`` if not reported."""
|
|
155
|
+
value = getattr(getattr(capabilities, name, None), "supported", None)
|
|
156
|
+
return value if isinstance(value, bool) else None
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def list_anthropic_models(client: Any, base_url: str, provider: str, **extra: Any) -> list[dict[str, Any]]:
|
|
160
|
+
"""The Models API's list as ``list_models()`` entries, newest first.
|
|
161
|
+
|
|
162
|
+
Limits and capabilities come from the API only; whatever it does not report
|
|
163
|
+
is ``None``. ``extra`` keys (e.g. LangDock's backend and region) are added to
|
|
164
|
+
every entry.
|
|
165
|
+
"""
|
|
166
|
+
entries = []
|
|
167
|
+
# Iterating the page (not `.data`) follows the API's pagination past the first 100.
|
|
168
|
+
for model in client.models.list(limit=100):
|
|
169
|
+
capabilities = getattr(model, "capabilities", None)
|
|
170
|
+
entries.append(
|
|
171
|
+
{
|
|
172
|
+
"id": model.id,
|
|
173
|
+
"name": getattr(model, "display_name", None) or model.id,
|
|
174
|
+
"created": getattr(model, "created_at", None),
|
|
175
|
+
"provider": provider,
|
|
176
|
+
**extra,
|
|
177
|
+
**param_learning.model_metadata(
|
|
178
|
+
base_url,
|
|
179
|
+
model.id,
|
|
180
|
+
context_length=getattr(model, "max_input_tokens", None),
|
|
181
|
+
max_output_tokens=getattr(model, "max_tokens", None),
|
|
182
|
+
supports_vision=capability_supported(capabilities, "image_input"),
|
|
183
|
+
supports_reasoning=capability_supported(capabilities, "thinking"),
|
|
184
|
+
),
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
entries.sort(key=lambda m: m.get("created") or "", reverse=True)
|
|
188
|
+
return entries
|
|
@@ -164,6 +164,10 @@ class ModelCheck:
|
|
|
164
164
|
vision: str = "skipped"
|
|
165
165
|
"""The same with a small image."""
|
|
166
166
|
|
|
167
|
+
web_search: str = "skipped"
|
|
168
|
+
"""The same with the provider's built-in web search switched on; ``"skipped"``
|
|
169
|
+
where the provider has none (``supports_native_web_search``)."""
|
|
170
|
+
|
|
167
171
|
adjustments: list[str] = field(default_factory=list)
|
|
168
172
|
"""Request adjustments this model needs (``param_learning.LEARNABLE`` names).
|
|
169
173
|
Persist them and hand them back with ``seed_adjustments`` after a restart."""
|
|
@@ -484,6 +488,7 @@ class BaseLLMProvider(ABC):
|
|
|
484
488
|
max_tokens: int | None = None,
|
|
485
489
|
tools: bool = True,
|
|
486
490
|
vision: bool = True,
|
|
491
|
+
web_search: bool = True,
|
|
487
492
|
probe_limit: bool = True,
|
|
488
493
|
**kwargs: Any,
|
|
489
494
|
) -> ModelCheck:
|
|
@@ -492,8 +497,10 @@ class BaseLLMProvider(ABC):
|
|
|
492
497
|
Steps, each a streamed request shaped like a chat turn (system and user
|
|
493
498
|
message, the caller's ``temperature`` and extra ``kwargs``, an output limit
|
|
494
499
|
of at most ``CHECK_MAX_TOKENS``): plain text, then with one function tool
|
|
495
|
-
(``tools``), then with a small image (``vision``)
|
|
496
|
-
|
|
500
|
+
(``tools``), then with a small image (``vision``), then with the
|
|
501
|
+
provider's built-in web search switched on (``web_search``, only where
|
|
502
|
+
``supports_native_web_search``; the model is not asked to search, so it
|
|
503
|
+
costs no search). These are only tried once plain text works. Finally the output limit is asked for
|
|
497
504
|
(``probe_limit``, see ``probe_output_limit``).
|
|
498
505
|
|
|
499
506
|
A rejection the library does not recognise is explored: the request is
|
|
@@ -518,9 +525,9 @@ class BaseLLMProvider(ABC):
|
|
|
518
525
|
limit = min(max_tokens or CHECK_MAX_TOKENS, CHECK_MAX_TOKENS)
|
|
519
526
|
system = {"role": "system", "content": CHECK_SYSTEM}
|
|
520
527
|
|
|
521
|
-
def step(name: str, user_content: Any, step_tools: list[dict[str, Any]] | None) -> str:
|
|
528
|
+
def step(name: str, user_content: Any, step_tools: list[dict[str, Any]] | None, **extra: Any) -> str:
|
|
522
529
|
messages = [system, {"role": "user", "content": user_content}]
|
|
523
|
-
state, message = self._check_step(model, messages, temperature, limit, step_tools, kwargs)
|
|
530
|
+
state, message = self._check_step(model, messages, temperature, limit, step_tools, {**kwargs, **extra})
|
|
524
531
|
setattr(result, name, state)
|
|
525
532
|
if message:
|
|
526
533
|
result.messages[name] = message
|
|
@@ -532,6 +539,8 @@ class BaseLLMProvider(ABC):
|
|
|
532
539
|
if vision:
|
|
533
540
|
image = self._check_image_part(check_image_png())
|
|
534
541
|
step("vision", [{"type": "text", "text": "Which colour is this image?"}, image], None)
|
|
542
|
+
if web_search and self.supports_native_web_search():
|
|
543
|
+
step("web_search", "Reply with OK.", None, web_search=True)
|
|
535
544
|
if probe_limit:
|
|
536
545
|
try:
|
|
537
546
|
self.probe_output_limit(model)
|
|
@@ -574,6 +583,15 @@ class BaseLLMProvider(ABC):
|
|
|
574
583
|
|
|
575
584
|
return scrub_secrets(str(error))[:500]
|
|
576
585
|
|
|
586
|
+
def supports_native_web_search(self) -> bool:
|
|
587
|
+
"""Whether this provider offers a built-in web search (``web_search=True``).
|
|
588
|
+
|
|
589
|
+
The search runs at the provider, which also bills it. Whether a given
|
|
590
|
+
model and account may use it is found out by ``check_model``.
|
|
591
|
+
Providers without one ignore ``web_search``.
|
|
592
|
+
"""
|
|
593
|
+
return False
|
|
594
|
+
|
|
577
595
|
def _check_image_part(self, png_base64: str) -> dict[str, Any]:
|
|
578
596
|
"""The image of the vision step, in the message format this provider expects."""
|
|
579
597
|
return {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{png_base64}"}}
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/langdock_provider.py
RENAMED
|
@@ -13,6 +13,7 @@ Documentation: https://docs.langdock.com/api-endpoints/api-introduction
|
|
|
13
13
|
|
|
14
14
|
import json
|
|
15
15
|
import logging
|
|
16
|
+
import re
|
|
16
17
|
from collections.abc import Iterable, Iterator
|
|
17
18
|
from contextlib import ExitStack
|
|
18
19
|
from typing import Any
|
|
@@ -20,7 +21,13 @@ from typing import Any
|
|
|
20
21
|
import httpx2
|
|
21
22
|
|
|
22
23
|
from eq_chatbot_core.providers import param_learning
|
|
23
|
-
from eq_chatbot_core.providers.anthropic_shared import
|
|
24
|
+
from eq_chatbot_core.providers.anthropic_shared import (
|
|
25
|
+
add_web_search,
|
|
26
|
+
convert_messages,
|
|
27
|
+
create_message,
|
|
28
|
+
list_anthropic_models,
|
|
29
|
+
open_message_stream,
|
|
30
|
+
)
|
|
24
31
|
from eq_chatbot_core.providers.base import (
|
|
25
32
|
AuthenticationError,
|
|
26
33
|
BaseLLMProvider,
|
|
@@ -109,6 +116,60 @@ def _iter_sse_data(lines: Iterable[str]) -> Iterator[dict[str, Any]]:
|
|
|
109
116
|
yield event
|
|
110
117
|
|
|
111
118
|
|
|
119
|
+
# Source markers an agent leaves in its text after a search, e.g.
|
|
120
|
+
# "75173 【toolu_vrtx_01LU…-0】" (LangDock, 12.10.2026) or OpenAI's "【4:0†source】".
|
|
121
|
+
# They point into the agent's own tool results, which the caller never sees.
|
|
122
|
+
_SOURCE_MARKER = re.compile(r"[ \t]?【[^】\n]{0,200}?(?:toolu_|†|:\d)[^】\n]{0,200}】")
|
|
123
|
+
_MARKER_HOLD = 300
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class _AgentText:
|
|
127
|
+
"""The user-visible text of an agent's event stream.
|
|
128
|
+
|
|
129
|
+
Removes source markers, also when one is split across deltas, and starts a
|
|
130
|
+
new paragraph when the agent writes again after a tool step — LangDock sends
|
|
131
|
+
"…belegt sind." and "Impressum und…" from two steps with nothing between.
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
def __init__(self) -> None:
|
|
135
|
+
self._held = ""
|
|
136
|
+
self._wrote = False
|
|
137
|
+
self._new_step = False
|
|
138
|
+
|
|
139
|
+
def feed(self, event: dict[str, Any]) -> str:
|
|
140
|
+
kind = event.get("type")
|
|
141
|
+
if kind == "start-step" and self._wrote:
|
|
142
|
+
self._new_step = True
|
|
143
|
+
return ""
|
|
144
|
+
if kind != "text-delta":
|
|
145
|
+
return ""
|
|
146
|
+
delta = event.get("delta") or ""
|
|
147
|
+
if not delta:
|
|
148
|
+
return ""
|
|
149
|
+
if self._new_step:
|
|
150
|
+
self._new_step = False
|
|
151
|
+
delta = "\n\n" + delta.lstrip()
|
|
152
|
+
return self._release(self._held + delta)
|
|
153
|
+
|
|
154
|
+
def flush(self) -> str:
|
|
155
|
+
text, self._held = _SOURCE_MARKER.sub("", self._held), ""
|
|
156
|
+
return text
|
|
157
|
+
|
|
158
|
+
def _release(self, text: str) -> str:
|
|
159
|
+
text = _SOURCE_MARKER.sub("", text)
|
|
160
|
+
start = text.rfind("【")
|
|
161
|
+
if start > 0 and text[start - 1] in " \t":
|
|
162
|
+
start -= 1 # the space before a marker goes with it
|
|
163
|
+
if start != -1 and "】" not in text[start:] and len(text) - start < _MARKER_HOLD:
|
|
164
|
+
# Possibly the beginning of a marker: hold it until it closes.
|
|
165
|
+
text, self._held = text[:start], text[start:]
|
|
166
|
+
else:
|
|
167
|
+
self._held = ""
|
|
168
|
+
if text:
|
|
169
|
+
self._wrote = True
|
|
170
|
+
return text
|
|
171
|
+
|
|
172
|
+
|
|
112
173
|
def _agent_error_message(status_code: int, detail: str) -> str:
|
|
113
174
|
"""Turn an Agent API error body into an actionable, German-language message.
|
|
114
175
|
|
|
@@ -276,6 +337,50 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
276
337
|
# The agent backend's model is configured in LangDock; nothing is learned there.
|
|
277
338
|
return None if self.backend == "agent" else self._learning_scope(self._get_backend_url())
|
|
278
339
|
|
|
340
|
+
def agent_info(self) -> dict[str, Any]:
|
|
341
|
+
"""What the configured agent can do, from LangDock's Agent Get API.
|
|
342
|
+
|
|
343
|
+
Returns ``name``, ``model`` (the model ID set in LangDock, ``None`` on
|
|
344
|
+
"Auto"), ``web_search``, ``image_generation``, ``extended_thinking``,
|
|
345
|
+
``canvas``, ``knowledge`` (knowledge folders attached) and ``actions``
|
|
346
|
+
(number of LangDock actions). Instructions, description and owner are
|
|
347
|
+
left out on purpose. Raises ``ProviderError`` when the agent cannot be
|
|
348
|
+
read (no access, wrong workspace, network).
|
|
349
|
+
"""
|
|
350
|
+
if self.backend != "agent" or not self.agent_id:
|
|
351
|
+
raise ProviderError("agent_info needs the agent backend and an agent ID", provider="langdock")
|
|
352
|
+
try:
|
|
353
|
+
response = self.http_client.get("/get", params={"agentId": self.agent_id}, timeout=30.0)
|
|
354
|
+
except httpx2.HTTPError as e:
|
|
355
|
+
raise ProviderError(f"Agent HTTP error: {_scrub(str(e))}", provider="langdock") from e
|
|
356
|
+
if response.status_code != 200:
|
|
357
|
+
detail = _safe_detail(response.text)
|
|
358
|
+
raise ProviderError(
|
|
359
|
+
_agent_error_message(response.status_code, detail),
|
|
360
|
+
provider="langdock",
|
|
361
|
+
status_code=response.status_code,
|
|
362
|
+
)
|
|
363
|
+
agent = (response.json() or {}).get("agent") or {}
|
|
364
|
+
return {
|
|
365
|
+
"name": agent.get("name") or "",
|
|
366
|
+
"model": agent.get("model"),
|
|
367
|
+
"web_search": bool(agent.get("webSearchEnabled")),
|
|
368
|
+
"image_generation": bool(agent.get("imageGenerationEnabled")),
|
|
369
|
+
"extended_thinking": bool(agent.get("extendedThinking")),
|
|
370
|
+
"canvas": bool(agent.get("canvasEnabled")),
|
|
371
|
+
"knowledge": bool(agent.get("knowledgeFolderIds")),
|
|
372
|
+
"actions": len(agent.get("actions") or []),
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
def supports_native_web_search(self) -> bool:
|
|
376
|
+
"""The anthropic backend passes Anthropic's server-side web search through.
|
|
377
|
+
|
|
378
|
+
LangDock's openai endpoints refuse hosted tools ("Only function tools are
|
|
379
|
+
allowed", checked 12.10.2026); an agent searches if it is set up to in
|
|
380
|
+
LangDock (``agent_info``).
|
|
381
|
+
"""
|
|
382
|
+
return self.backend == "anthropic"
|
|
383
|
+
|
|
279
384
|
def _check_image_part(self, png_base64: str) -> dict[str, Any]:
|
|
280
385
|
"""The anthropic backend takes the Messages API's image block, the others OpenAI's."""
|
|
281
386
|
if self.backend == "anthropic":
|
|
@@ -378,6 +483,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
378
483
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
379
484
|
*,
|
|
380
485
|
reasoning_effort: str | None = None,
|
|
486
|
+
web_search: bool = False,
|
|
381
487
|
**kwargs: Any,
|
|
382
488
|
) -> LLMResponse:
|
|
383
489
|
"""
|
|
@@ -397,7 +503,9 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
397
503
|
messages, model, temperature, max_tokens, tools, reasoning_effort, **kwargs
|
|
398
504
|
)
|
|
399
505
|
elif self.backend == "anthropic":
|
|
400
|
-
return self._anthropic_chat_completion(
|
|
506
|
+
return self._anthropic_chat_completion(
|
|
507
|
+
messages, model, temperature, max_tokens, tools, web_search=web_search, **kwargs
|
|
508
|
+
)
|
|
401
509
|
elif self.backend == "google":
|
|
402
510
|
return self._google_chat_completion(messages, model, temperature, max_tokens, **kwargs)
|
|
403
511
|
elif self.backend == "codestral":
|
|
@@ -576,16 +684,16 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
576
684
|
content_parts: list[str] = []
|
|
577
685
|
model_name = ""
|
|
578
686
|
metadata: dict[str, Any] = {}
|
|
687
|
+
text = _AgentText()
|
|
579
688
|
|
|
580
689
|
for event in self._agent_request_events(agent_messages):
|
|
581
|
-
|
|
582
|
-
if kind == "text-delta":
|
|
583
|
-
delta = event.get("delta") or ""
|
|
584
|
-
if delta:
|
|
585
|
-
content_parts.append(delta)
|
|
586
|
-
elif kind == "start":
|
|
690
|
+
if event.get("type") == "start":
|
|
587
691
|
metadata = event.get("messageMetadata") or {}
|
|
588
692
|
model_name = metadata.get("modelName") or ""
|
|
693
|
+
piece = text.feed(event)
|
|
694
|
+
if piece:
|
|
695
|
+
content_parts.append(piece)
|
|
696
|
+
content_parts.append(text.flush())
|
|
589
697
|
|
|
590
698
|
content = "".join(content_parts)
|
|
591
699
|
if not content:
|
|
@@ -622,6 +730,8 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
622
730
|
temperature: float,
|
|
623
731
|
max_tokens: int | None,
|
|
624
732
|
tools: list[dict[str, Any]] | None,
|
|
733
|
+
*,
|
|
734
|
+
web_search: bool = False,
|
|
625
735
|
**kwargs: Any,
|
|
626
736
|
) -> LLMResponse:
|
|
627
737
|
"""Anthropic-compatible chat completion."""
|
|
@@ -630,7 +740,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
630
740
|
|
|
631
741
|
params: dict[str, Any] = {
|
|
632
742
|
"model": model,
|
|
633
|
-
"messages": filtered_messages,
|
|
743
|
+
"messages": convert_messages(filtered_messages),
|
|
634
744
|
"max_tokens": max_tokens or 4096,
|
|
635
745
|
}
|
|
636
746
|
|
|
@@ -654,6 +764,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
654
764
|
)
|
|
655
765
|
if anthropic_tools:
|
|
656
766
|
params["tools"] = anthropic_tools
|
|
767
|
+
add_web_search(params, web_search)
|
|
657
768
|
|
|
658
769
|
params.update(kwargs)
|
|
659
770
|
|
|
@@ -874,6 +985,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
874
985
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
875
986
|
*,
|
|
876
987
|
reasoning_effort: str | None = None,
|
|
988
|
+
web_search: bool = False,
|
|
877
989
|
**kwargs: Any,
|
|
878
990
|
) -> Iterator[StreamChunk]:
|
|
879
991
|
"""
|
|
@@ -893,7 +1005,9 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
893
1005
|
messages, model, temperature, max_tokens, tools, reasoning_effort, **kwargs
|
|
894
1006
|
)
|
|
895
1007
|
elif self.backend == "anthropic":
|
|
896
|
-
yield from self._anthropic_stream_completion(
|
|
1008
|
+
yield from self._anthropic_stream_completion(
|
|
1009
|
+
messages, model, temperature, max_tokens, tools, web_search=web_search, **kwargs
|
|
1010
|
+
)
|
|
897
1011
|
elif self.backend == "google":
|
|
898
1012
|
yield from self._google_stream_completion(messages, model, temperature, max_tokens, **kwargs)
|
|
899
1013
|
elif self.backend == "codestral":
|
|
@@ -969,21 +1083,20 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
969
1083
|
kwargs.pop("max_tokens", None)
|
|
970
1084
|
|
|
971
1085
|
emitted = 0
|
|
1086
|
+
text = _AgentText()
|
|
972
1087
|
for event in self._agent_request_events(agent_messages):
|
|
973
1088
|
kind = event.get("type")
|
|
974
|
-
|
|
975
|
-
if
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
)
|
|
986
|
-
elif kind == "start":
|
|
1089
|
+
piece = text.feed(event)
|
|
1090
|
+
if piece:
|
|
1091
|
+
emitted += 1
|
|
1092
|
+
yield StreamChunk(
|
|
1093
|
+
content=piece,
|
|
1094
|
+
is_final=False,
|
|
1095
|
+
finish_reason=None,
|
|
1096
|
+
input_tokens=0,
|
|
1097
|
+
output_tokens=0,
|
|
1098
|
+
)
|
|
1099
|
+
if kind == "start":
|
|
987
1100
|
model_name = (event.get("messageMetadata") or {}).get("modelName")
|
|
988
1101
|
if model_name:
|
|
989
1102
|
_logger.info(f"Agent stream: answering with {model_name}")
|
|
@@ -991,6 +1104,11 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
991
1104
|
# and data-* carry no user-visible text; ignoring unknown types
|
|
992
1105
|
# keeps a protocol addition from breaking us.
|
|
993
1106
|
|
|
1107
|
+
rest = text.flush()
|
|
1108
|
+
if rest:
|
|
1109
|
+
emitted += 1
|
|
1110
|
+
yield StreamChunk(content=rest, is_final=False, finish_reason=None, input_tokens=0, output_tokens=0)
|
|
1111
|
+
|
|
994
1112
|
if not emitted:
|
|
995
1113
|
_logger.warning("Agent stream: no text-delta events in the response")
|
|
996
1114
|
|
|
@@ -1021,6 +1139,8 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
1021
1139
|
temperature: float,
|
|
1022
1140
|
max_tokens: int | None,
|
|
1023
1141
|
tools: list[dict[str, Any]] | None,
|
|
1142
|
+
*,
|
|
1143
|
+
web_search: bool = False,
|
|
1024
1144
|
**kwargs: Any,
|
|
1025
1145
|
) -> Iterator[StreamChunk]:
|
|
1026
1146
|
"""Anthropic-compatible streaming."""
|
|
@@ -1029,7 +1149,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
1029
1149
|
|
|
1030
1150
|
params: dict[str, Any] = {
|
|
1031
1151
|
"model": model,
|
|
1032
|
-
"messages": filtered_messages,
|
|
1152
|
+
"messages": convert_messages(filtered_messages),
|
|
1033
1153
|
"max_tokens": max_tokens or 4096,
|
|
1034
1154
|
}
|
|
1035
1155
|
|
|
@@ -1052,6 +1172,7 @@ class LangDockProvider(BaseLLMProvider):
|
|
|
1052
1172
|
)
|
|
1053
1173
|
if anthropic_tools:
|
|
1054
1174
|
params["tools"] = anthropic_tools
|
|
1175
|
+
add_web_search(params, web_search)
|
|
1055
1176
|
|
|
1056
1177
|
params.update(kwargs)
|
|
1057
1178
|
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openai_compatible.py
RENAMED
|
@@ -323,6 +323,8 @@ class OpenAICompatibleProvider(BaseLLMProvider):
|
|
|
323
323
|
temperature: float = 0.7,
|
|
324
324
|
max_tokens: int | None = None,
|
|
325
325
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
326
|
+
*,
|
|
327
|
+
web_search: bool = False,
|
|
326
328
|
**kwargs: Any,
|
|
327
329
|
) -> LLMResponse:
|
|
328
330
|
"""Send a chat completion request to the gateway."""
|
|
@@ -394,6 +396,8 @@ class OpenAICompatibleProvider(BaseLLMProvider):
|
|
|
394
396
|
temperature: float = 0.7,
|
|
395
397
|
max_tokens: int | None = None,
|
|
396
398
|
tools: "list[ToolDefinition] | list[dict[str, Any]] | None" = None,
|
|
399
|
+
*,
|
|
400
|
+
web_search: bool = False,
|
|
397
401
|
**kwargs: Any,
|
|
398
402
|
) -> Iterator[StreamChunk]:
|
|
399
403
|
"""Stream a chat completion response from the gateway.
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"""Helpers shared by AnthropicProvider and LangDock's ``anthropic`` backend.
|
|
2
|
-
|
|
3
|
-
Whether a model takes ``temperature`` is learned from the Messages API's own
|
|
4
|
-
rejection (newer models answer "`temperature` is deprecated for this model.")
|
|
5
|
-
and remembered per endpoint and model in ``param_learning``. ``max_tokens`` is
|
|
6
|
-
mandatory in this API and is never learned here. Only ``temperature`` is
|
|
7
|
-
learnable: ``reasoning_effort`` is not sent on these paths.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from __future__ import annotations
|
|
11
|
-
|
|
12
|
-
import logging
|
|
13
|
-
from contextlib import ExitStack
|
|
14
|
-
from typing import Any
|
|
15
|
-
|
|
16
|
-
from eq_chatbot_core.providers import param_learning
|
|
17
|
-
|
|
18
|
-
ANTHROPIC_LEARNABLE: tuple[str, ...] = ("temperature",)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def create_message(client: Any, params: dict[str, Any], *, base_url: str, provider: str, logger: logging.Logger) -> Any:
|
|
22
|
-
"""``client.messages.create(**params)``, retried once without a rejected temperature."""
|
|
23
|
-
return param_learning.call_with_learning(
|
|
24
|
-
lambda: client.messages.create(**params),
|
|
25
|
-
base_url,
|
|
26
|
-
params,
|
|
27
|
-
provider=provider,
|
|
28
|
-
logger=logger,
|
|
29
|
-
only=ANTHROPIC_LEARNABLE,
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def open_message_stream(
|
|
34
|
-
stack: ExitStack,
|
|
35
|
-
client: Any,
|
|
36
|
-
params: dict[str, Any],
|
|
37
|
-
*,
|
|
38
|
-
base_url: str,
|
|
39
|
-
provider: str,
|
|
40
|
-
logger: logging.Logger,
|
|
41
|
-
) -> Any:
|
|
42
|
-
"""Enter ``client.messages.stream(**params)`` on ``stack``, with the same retry rule.
|
|
43
|
-
|
|
44
|
-
The SDK sends the request when the stream manager is entered, before any
|
|
45
|
-
event is read, so a retry never duplicates output already yielded.
|
|
46
|
-
"""
|
|
47
|
-
return param_learning.call_with_learning(
|
|
48
|
-
lambda: stack.enter_context(client.messages.stream(**params)),
|
|
49
|
-
base_url,
|
|
50
|
-
params,
|
|
51
|
-
provider=provider,
|
|
52
|
-
logger=logger,
|
|
53
|
-
only=ANTHROPIC_LEARNABLE,
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
def capability_supported(capabilities: Any, name: str) -> bool | None:
|
|
58
|
-
"""``capabilities.<name>.supported`` from the Models API, or ``None`` if not reported."""
|
|
59
|
-
value = getattr(getattr(capabilities, name, None), "supported", None)
|
|
60
|
-
return value if isinstance(value, bool) else None
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def list_anthropic_models(client: Any, base_url: str, provider: str, **extra: Any) -> list[dict[str, Any]]:
|
|
64
|
-
"""The Models API's list as ``list_models()`` entries, newest first.
|
|
65
|
-
|
|
66
|
-
Limits and capabilities come from the API only; whatever it does not report
|
|
67
|
-
is ``None``. ``extra`` keys (e.g. LangDock's backend and region) are added to
|
|
68
|
-
every entry.
|
|
69
|
-
"""
|
|
70
|
-
entries = []
|
|
71
|
-
# Iterating the page (not `.data`) follows the API's pagination past the first 100.
|
|
72
|
-
for model in client.models.list(limit=100):
|
|
73
|
-
capabilities = getattr(model, "capabilities", None)
|
|
74
|
-
entries.append(
|
|
75
|
-
{
|
|
76
|
-
"id": model.id,
|
|
77
|
-
"name": getattr(model, "display_name", None) or model.id,
|
|
78
|
-
"created": getattr(model, "created_at", None),
|
|
79
|
-
"provider": provider,
|
|
80
|
-
**extra,
|
|
81
|
-
**param_learning.model_metadata(
|
|
82
|
-
base_url,
|
|
83
|
-
model.id,
|
|
84
|
-
context_length=getattr(model, "max_input_tokens", None),
|
|
85
|
-
max_output_tokens=getattr(model, "max_tokens", None),
|
|
86
|
-
supports_vision=capability_supported(capabilities, "image_input"),
|
|
87
|
-
supports_reasoning=capability_supported(capabilities, "thinking"),
|
|
88
|
-
),
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
entries.sort(key=lambda m: m.get("created") or "", reverse=True)
|
|
92
|
-
return entries
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/data/config.toml.example
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/ionos_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/litellm_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/local_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/mammouth_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/melious_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openai_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/openrouter_provider.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/param_learning.py
RENAMED
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/providers/stream_accumulator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/__init__.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/elevenlabs.py
RENAMED
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/providers/openai.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/realtime/websocket_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/security/file_validator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/capability_catalog.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/document_extractor.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/error_handler.py
RENAMED
|
File without changes
|
{eq_chatbot_core-4.2.0 → eq_chatbot_core-4.3.0}/src/eq_chatbot_core/services/knowledge_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|