struct-sdk 0.5.9__tar.gz → 0.5.11__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.
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/PKG-INFO +1 -1
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/pyproject.toml +1 -1
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/poller.py +5 -5
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/.gitignore +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/LICENSE +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/README.md +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/__init__.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_auto.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_container.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_distro.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/__init__.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/config.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/export.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/otlp_sender.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/snapshot.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_event_loop.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_fork_safe_http.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_genai_content.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_metrics.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_operation_details.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_pool.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/ag2.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/anthropic.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/autogen.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/claude_agent.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/core.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/crewai.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/gcp.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/google_genai.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/langchain.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/litellm.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/llamaindex.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/mcp.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/openai.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/openai_agents.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/pydantic_ai.py +0 -0
- {struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/temporal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: struct-sdk
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.11
|
|
4
4
|
Summary: Struct agent observability SDK — auto-instruments AI agent frameworks with OpenTelemetry
|
|
5
5
|
Project-URL: Homepage, https://struct.ai
|
|
6
6
|
Project-URL: Documentation, https://struct.ai/docs
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "struct-sdk"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.11"
|
|
8
8
|
description = "Struct agent observability SDK — auto-instruments AI agent frameworks with OpenTelemetry"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Poll the Struct API for
|
|
1
|
+
"""Poll the Struct API for Observation configuration, off the host's request path.
|
|
2
2
|
|
|
3
3
|
One daemon thread makes one request at a time, and a client never has more than that one thread:
|
|
4
4
|
``start`` during a request that outlasted ``shutdown`` carries on with the same thread. A failure of
|
|
@@ -7,13 +7,13 @@ installs what it receives: ``current`` and ``on_received`` are how later stages
|
|
|
7
7
|
|
|
8
8
|
The wire contract, which the server route (STR-7169) has to match:
|
|
9
9
|
|
|
10
|
-
- ``GET {api}/api/
|
|
10
|
+
- ``GET {api}/api/observations/runtime/config?service=&environment=`` answers a
|
|
11
11
|
descriptor or 304. It sends ``Authorization: Bearer <key>``, ``If-None-Match`` with the ETag of
|
|
12
12
|
the verified received configuration, and ``X-Struct-Base-Artifact`` with that configuration's
|
|
13
13
|
artifact ID. With neither of those two headers the client is asking for a full package, and that
|
|
14
14
|
answer must be no older than any package already served to this scope: a refused package can only
|
|
15
15
|
be left behind by moving past it, so an older full package would keep the client from recovering.
|
|
16
|
-
- ``GET {api}/api/
|
|
16
|
+
- ``GET {api}/api/observations/runtime/artifacts/{result.artifactId}?service=&environment=``
|
|
17
17
|
answers the gzip payload as raw bytes. Artifact IDs are up to 64 of ``A-Za-z0-9_-``.
|
|
18
18
|
"""
|
|
19
19
|
|
|
@@ -57,8 +57,8 @@ logger = logging.getLogger("struct_sdk")
|
|
|
57
57
|
|
|
58
58
|
DEFAULT_API_URL = "https://api.struct.ai"
|
|
59
59
|
DEFAULT_INGEST_HOST = "ingest.struct.ai"
|
|
60
|
-
CONFIG_PATH = "/api/
|
|
61
|
-
ARTIFACT_PATH = "/api/
|
|
60
|
+
CONFIG_PATH = "/api/observations/runtime/config"
|
|
61
|
+
ARTIFACT_PATH = "/api/observations/runtime/artifacts/"
|
|
62
62
|
BASE_ARTIFACT_HEADER = "X-Struct-Base-Artifact"
|
|
63
63
|
|
|
64
64
|
POLL_INTERVAL_SECONDS = 2.0
|
|
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
|
{struct_sdk-0.5.9 → struct_sdk-0.5.11}/src/struct_sdk/_dynamic_instrumentation/otlp_sender.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
|
|
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
|