Krira Augment SDK
Official Python SDK for building integrations with Krira Augment RAG pipelines.
Installation
pip install krira-augment-sdk
Quick Start
from krira_augment import KriraAugment
# Initialize the client with your API key and pipeline name
client = KriraAugment(api_key="sk-live-your-key", pipeline_name="employees")
# Ask a question to your RAG pipeline
response = client.ask("What can you help me with?")
print(response.answer)
# With conversation context
response = client.ask(
"Tell me more about that",
conversation_id="my-session-123"
)
print(response.answer)
API Reference
KriraAugment
The main client class for interacting with Krira Augment pipelines.
Constructor
KriraAugment(
*,
api_key: str, # Your Krira Augment API key
pipeline_name: str, # Name or ID of your RAG pipeline
base_url: str = None, # Optional custom API base URL
timeout: float = 15.0, # Request timeout in seconds
)
Methods
ask(question, *, conversation_id=None, metadata=None, timeout=None)
Send a question to your RAG pipeline and receive an answer.
Parameters:
question(str): The question to askconversation_id(str, optional): Session ID for conversation contextmetadata(dict, optional): Additional metadata to passtimeout(float, optional): Override the default timeout
Returns: ChatResponse object with:
answer(str): The model's responsepipeline_name(str): The pipeline usedconversation_id(str, optional): The conversation IDraw(dict): Raw API response
close()
Close the underlying HTTP session.
Error Handling
from krira_augment import KriraAugment
from krira_augment.exceptions import (
AuthenticationError,
PermissionDeniedError,
RateLimitError,
ServerError,
)
client = KriraAugment(api_key="sk-live-your-key", pipeline_name="employees")
try:
response = client.ask("What is the status of my order?")
print(response.answer)
except AuthenticationError:
print("Invalid API key")
except PermissionDeniedError:
print("API key doesn't have access to this pipeline")
except RateLimitError:
print("Too many requests, slow down")
except ServerError:
print("Krira Augment service is temporarily unavailable")
Aliases
For convenience, additional class aliases are available:
from krira_augment import KriraPipeline, KriraAugmentClient
# These are equivalent to KriraAugment
client = KriraPipeline(api_key="...", pipeline_name="...")
client = KriraAugmentClient(api_key="...", pipeline_name="...")
Requirements
- Python 3.9+
- requests >= 2.31.0
License
MIT
Metadata
Release files for krira-augment-sdk 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| krira_augment_sdk-1.0.3.tar.gz | 5.1 kB | Without provenance | Details for krira_augment_sdk-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| krira_augment_sdk-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for krira_augment_sdk-1.0.3-py3-none-any.whl |
Total release size: 10.7 kB
Release files / krira_augment_sdk-1.0.3.tar.gz
| Download URL | krira_augment_sdk-1.0.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fbb08864c7e6fcf620d782b09d44ec93a6a9d84d3b94c2e77fd9ab8e78a2ea3
|
|
BLAKE2b-256 checksum How to use checksums |
1af9117158fae83c7abd9cd053209bf3d99f99a398e809635d66feea93a00e83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / krira_augment_sdk-1.0.3-py3-none-any.whl
| Download URL | krira_augment_sdk-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b78bd88c543d858d741642db47b328f58fc32f253add807d8be4b8ca18ea216
|
|
BLAKE2b-256 checksum How to use checksums |
38fde31273af238a295d728b4a96887cfea1687a74ce6238f6cf09a8a15d07a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for krira-augment-sdk 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.