Metadata-Version: 2.5
Name: airprompter-agent
Version: 1.0.0rc0
Summary: Run prompts and workflows approved in AirPrompter on your own systems: signed pull-only updates, an encrypted restart-safe slot store, offline operation, content-free telemetry. One distribution: the agent at the top, its parts in airprompter_agent.core, .sync, .runtime and .telemetry.
Project-URL: Homepage, https://github.com/airprompter/airprompter-agent-sdk
Project-URL: Source, https://github.com/airprompter/airprompter-agent-sdk/tree/main/sdk-python/packages/agent
Project-URL: Protocol, https://github.com/airprompter/airprompter-agent-sdk/tree/main/protocol
Project-URL: Changelog, https://github.com/airprompter/airprompter-agent-sdk/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/airprompter/airprompter-agent-sdk/issues
Author: AirPrompter
License-Expression: BSD-3-Clause
License-File: LICENSE
Keywords: agent,airprompter,governance,llm,prompts
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: cryptography>=42
Requires-Dist: httpx<1,>=0.27
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.40; extra == 'anthropic'
Provides-Extra: keyring
Requires-Dist: keyring>=25; extra == 'keyring'
Provides-Extra: kms
Requires-Dist: boto3>=1.34; extra == 'kms'
Provides-Extra: litellm
Requires-Dist: litellm>=1.50; extra == 'litellm'
Provides-Extra: openai
Requires-Dist: openai>=1.40; extra == 'openai'
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Provides-Extra: vault
Requires-Dist: hvac>=2; extra == 'vault'
Description-Content-Type: text/markdown

# airprompter-agent

One install for `AirPrompterAgent`: signed pull-only updates, the encrypted
restart-safe slot store, offline operation, rendering with trust-aware
variables, `ap.wrap()` for the openai and anthropic clients (and a LiteLLM
callback), and content-free telemetry.

```python
from airprompter_agent import AirPrompterAgent

ap = AirPrompterAgent.start(organization_id="org_…", agent_id="agt_…", target="prod", api_key=os.environ["AIRPROMPTER_AGENT_KEY"], root={"pinned": PINNED_ROOT_JWK})
rendered = ap.prompt("support.triage").render(team="Billing", ticket=ticket_text)
completion = ap.observe(rendered, lambda: client.chat.completions.create(model=rendered.model, messages=[...]))
ap.feedback(rendered.run_ref, thumbs="up")
```

The parts are subpackages: `airprompter_agent.core` (the protocol with no I/O),
`.sync` (pull and verify, the encrypted slot store, the apply policy), `.runtime`
(render and assign over a release you hold, the provider wrappers) and
`.telemetry` (the spool and its uploader). Extras: `[kms]`, `[vault]`, `[keyring]`,
`[openai]`, `[anthropic]`, `[litellm]`.

Separate distributions exist only for dependency footprint and pin this one to
the same version: `airprompter-agent-otel`, `airprompter-datastore-s3`, `-postgres`
and `-redis`. The full README and the parity matrix are in
[`sdk-python/README.md`](https://github.com/airprompter/airprompter-agent-sdk/tree/main/sdk-python);
the protocol is in [`protocol/`](https://github.com/airprompter/airprompter-agent-sdk/tree/main/protocol).
BSD-3-Clause.
