Official Python SDK for the Prometa Agentic Lifecycle Intelligence Platform
Project description
prometa-sdk (Python)
Official Python SDK for the Prometa Agentic Lifecycle Intelligence Platform.
Wraps OpenTelemetry GenAI semantic conventions with @prometa decorators that
automatically emit lifecycle metadata (solution_id, stage, agent) to your
Prometa instance via OTLP/JSON.
Install
pip install prometa-sdk
Quick start
import asyncio
from prometa import Prometa
prometa = Prometa(
endpoint="https://prometa.example.com/api/v2/otlp/v1/traces",
api_key="prm_live_...",
solution_id="sol_abc123",
agent_name="customer-support",
stage="production",
)
@prometa.workflow(name="handle-ticket")
async def handle_ticket(ticket_id: str) -> str:
@prometa.agent(name="classifier")
async def classify() -> str:
return "billing"
@prometa.tool(name="kb-search")
async def kb_search(q: str) -> list[str]:
return ["doc1", "doc2"]
category = await classify()
results = await kb_search(category)
return f"resolved {ticket_id} via {results}"
asyncio.run(handle_ticket("T-1234"))
prometa.flush()
What gets captured
Each decorated function emits a span with:
prometa.kind—workflow | agent | tool | taskprometa.solution_id,prometa.stagegen_ai.agent.name,gen_ai.agent.id- Parent/child relationships across async/sync calls
- Errors → span status
errorpluserror.message
Configuration
| Param | Env var | Default |
|---|---|---|
endpoint |
— | required |
api_key |
PROMETA_API_KEY |
none |
solution_id |
— | none |
agent_name |
— | "prometa-agent" |
stage |
— | "development" |
flush_interval_seconds |
— | 2.0 |
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prometa_sdk-0.1.0.tar.gz.
File metadata
- Download URL: prometa_sdk-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2304c76a6c14f9a3739d55048d8ee3c229a80015de6ab7669aa5b43a60cad8
|
|
| MD5 |
616e3a73227324e6a4415e5acc5287ee
|
|
| BLAKE2b-256 |
206d038334747fdf323ab911c6185fbfe241d61a62bba059c295f6ffdda67b56
|
Provenance
The following attestation bundles were made for prometa_sdk-0.1.0.tar.gz:
Publisher:
sdk-release.yml on caglarsubas/agent-hook-v2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prometa_sdk-0.1.0.tar.gz -
Subject digest:
9d2304c76a6c14f9a3739d55048d8ee3c229a80015de6ab7669aa5b43a60cad8 - Sigstore transparency entry: 1362811356
- Sigstore integration time:
-
Permalink:
caglarsubas/agent-hook-v2@51583d0d138a5bbf91dd136fb2583fe1e8757b14 -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/caglarsubas
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@51583d0d138a5bbf91dd136fb2583fe1e8757b14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file prometa_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prometa_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b19f6e1f4132c99681ede934f5ab8a5a1ed57fb5e4d28a21aa7c4976b62cf354
|
|
| MD5 |
d276cccbdb8e43fcaf3b8af6763f2888
|
|
| BLAKE2b-256 |
3c43234f2ed582457e49772eed253dade79197afbd94b9f2eb1780e11eef871c
|
Provenance
The following attestation bundles were made for prometa_sdk-0.1.0-py3-none-any.whl:
Publisher:
sdk-release.yml on caglarsubas/agent-hook-v2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prometa_sdk-0.1.0-py3-none-any.whl -
Subject digest:
b19f6e1f4132c99681ede934f5ab8a5a1ed57fb5e4d28a21aa7c4976b62cf354 - Sigstore transparency entry: 1362811371
- Sigstore integration time:
-
Permalink:
caglarsubas/agent-hook-v2@51583d0d138a5bbf91dd136fb2583fe1e8757b14 -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/caglarsubas
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@51583d0d138a5bbf91dd136fb2583fe1e8757b14 -
Trigger Event:
push
-
Statement type: