autobots-devtools-shared-lib 0.1.7__tar.gz → 0.2.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.
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/PKG-INFO +1 -1
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/pyproject.toml +1 -2
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/otel_fastapi.py +5 -5
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/trace_propagation.py +4 -4
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/README.md +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/logging_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/trace_metadata.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/observability/tracing.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/fileserver/README.md +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/fileserver/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/fileserver/app.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/fileserver/config.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/servers/fileserver/models.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/README.md +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/cache_backed.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/db_repository.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/factory.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/in_memory.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/redis_store.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/services/context/store.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/tools/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/tools/context_tools.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/tools/format_tools.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/tools/fserver_client_tools.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/utils/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/utils/context_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/utils/format_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/common/utils/fserver_client_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/agent_config_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/agent_meta.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/base_agent.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/batch.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/invocation_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/agents/middleware.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/config/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/config/dynagent_settings.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/llm/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/llm/llm.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/models/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/models/state.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/services/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/services/structured_converter.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/tools/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/tools/state_tools.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/tools/tool_registry.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/ui/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/ui/default_ui.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/ui/ui_utils.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/dynagent/utils/__init__.py +0 -0
- {autobots_devtools_shared_lib-0.1.7 → autobots_devtools_shared_lib-0.2.0}/src/autobots_devtools_shared_lib/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "autobots-devtools-shared-lib"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Shared library functions to be used for all autobots projects"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -32,7 +32,6 @@ dev = [
|
|
|
32
32
|
"pytest-asyncio>=1.3.0",
|
|
33
33
|
"pytest-cov>=7.0.0",
|
|
34
34
|
"ruff>=0.14.14",
|
|
35
|
-
"poetry>=2.3.2",
|
|
36
35
|
]
|
|
37
36
|
|
|
38
37
|
[tool.poetry]
|
|
@@ -40,7 +40,7 @@ def _configure_langfuse_otlp() -> bool:
|
|
|
40
40
|
sk = os.getenv("LANGFUSE_SECRET_KEY", "").strip()
|
|
41
41
|
if not pk or not sk:
|
|
42
42
|
return False
|
|
43
|
-
host = os.getenv("
|
|
43
|
+
host = os.getenv("LANGFUSE_HOST")
|
|
44
44
|
endpoint = f"{host}/api/public/otel"
|
|
45
45
|
auth = base64.b64encode(f"{pk}:{sk}".encode()).decode()
|
|
46
46
|
os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = endpoint
|
|
@@ -257,11 +257,11 @@ def instrument_fastapi(app: FastAPI) -> bool:
|
|
|
257
257
|
|
|
258
258
|
try:
|
|
259
259
|
from opentelemetry import trace
|
|
260
|
-
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
|
261
|
-
OTLPSpanExporter,
|
|
260
|
+
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
|
261
|
+
OTLPSpanExporter, # pyright: ignore[reportMissingImports]
|
|
262
262
|
)
|
|
263
|
-
from opentelemetry.instrumentation.fastapi import (
|
|
264
|
-
FastAPIInstrumentor,
|
|
263
|
+
from opentelemetry.instrumentation.fastapi import (
|
|
264
|
+
FastAPIInstrumentor, # pyright: ignore[reportMissingImports]
|
|
265
265
|
)
|
|
266
266
|
from opentelemetry.propagate import set_global_textmap
|
|
267
267
|
from opentelemetry.sdk.resources import Resource
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
OpenTelemetry trace propagation helpers for HTTP client calls.
|
|
3
3
|
|
|
4
4
|
Provides W3C traceparent header injection and session linking for fileserver HTTP calls.
|
|
5
|
-
Reuses Langfuse configuration (LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY,
|
|
5
|
+
Reuses Langfuse configuration (LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_HOST).
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
from __future__ import annotations
|
|
@@ -43,8 +43,8 @@ def _ensure_tracer_provider() -> bool:
|
|
|
43
43
|
try:
|
|
44
44
|
# Check if OTEL packages available
|
|
45
45
|
from opentelemetry import trace
|
|
46
|
-
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
|
47
|
-
OTLPSpanExporter,
|
|
46
|
+
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
|
47
|
+
OTLPSpanExporter, # pyright: ignore[reportMissingImports]
|
|
48
48
|
)
|
|
49
49
|
from opentelemetry.sdk.resources import Resource
|
|
50
50
|
from opentelemetry.sdk.trace import TracerProvider
|
|
@@ -80,7 +80,7 @@ def _ensure_tracer_provider() -> bool:
|
|
|
80
80
|
|
|
81
81
|
try:
|
|
82
82
|
# Configure OTLP endpoint (same pattern as otel_fastapi.py)
|
|
83
|
-
host = os.getenv("
|
|
83
|
+
host = os.getenv("LANGFUSE_HOST", "https://cloud.langfuse.com")
|
|
84
84
|
endpoint = f"{host}/api/public/otel"
|
|
85
85
|
auth = base64.b64encode(f"{pk}:{sk}".encode()).decode()
|
|
86
86
|
os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = endpoint
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|