kalibr 1.0.10__tar.gz → 1.0.12__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.
- {kalibr-1.0.10/kalibr.egg-info → kalibr-1.0.12}/PKG-INFO +1 -1
- kalibr-1.0.12/examples/demo_app.py +18 -0
- {kalibr-1.0.10 → kalibr-1.0.12/kalibr.egg-info}/PKG-INFO +1 -1
- {kalibr-1.0.10 → kalibr-1.0.12}/pyproject.toml +1 -1
- {kalibr-1.0.10 → kalibr-1.0.12}/setup.py +1 -1
- kalibr-1.0.10/examples/demo_app.py +0 -31
- {kalibr-1.0.10 → kalibr-1.0.12}/KALIBR_SDK_COMPLETE.md +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/LICENSE.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/MANIFEST.in +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/README.md +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/examples/enhanced_kalibr_example.py +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr/__init__.py +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr/__main__.py +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr/kalibr_app.py +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr/schema_generators.py +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr.egg-info/SOURCES.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr.egg-info/dependency_links.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr.egg-info/entry_points.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr.egg-info/requires.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/kalibr.egg-info/top_level.txt +0 -0
- {kalibr-1.0.10 → kalibr-1.0.12}/setup.cfg +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from kalibr.kalibr_app import KalibrApp
|
|
2
|
+
|
|
3
|
+
# Initialize the Kalibr app
|
|
4
|
+
app = KalibrApp(title="Demo App")
|
|
5
|
+
|
|
6
|
+
# Example tool
|
|
7
|
+
@app.tool()
|
|
8
|
+
def add(a: int, b: int) -> int:
|
|
9
|
+
"""Add two numbers."""
|
|
10
|
+
return a + b
|
|
11
|
+
|
|
12
|
+
@app.tool()
|
|
13
|
+
def greet(name: str) -> str:
|
|
14
|
+
"""Say hello to someone."""
|
|
15
|
+
return f"Hello, {name}! This response is generated via Kalibr."
|
|
16
|
+
|
|
17
|
+
# Expose the FastAPI instance for uvicorn
|
|
18
|
+
asgi_app = app.fastapi_app
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "kalibr"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.12"
|
|
8
8
|
description = "Kalibr SDK — Integrate your SaaS with every major AI model using a single SDK."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Devon" }]
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="kalibr",
|
|
5
|
-
version="1.0.
|
|
5
|
+
version="1.0.12", # BUMPED VERSION
|
|
6
6
|
author="Devon",
|
|
7
7
|
author_email="hello@kalibr.systems",
|
|
8
8
|
description="Kalibr Connect: integrate your app with every major AI model",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Kalibr Demo App
|
|
3
|
-
Demonstrates multi-model schema normalization via Kalibr SDK.
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
from kalibr.kalibr_app import KalibrApp
|
|
7
|
-
|
|
8
|
-
app = KalibrApp()
|
|
9
|
-
|
|
10
|
-
@app.register()
|
|
11
|
-
def summarize(text: str) -> str:
|
|
12
|
-
"""Summarizes input text."""
|
|
13
|
-
return f"[GPT-style summary]: {text[:40]}..."
|
|
14
|
-
|
|
15
|
-
@app.register()
|
|
16
|
-
def sentiment(text: str) -> dict:
|
|
17
|
-
"""Performs sentiment analysis with normalized schema outputs."""
|
|
18
|
-
return {
|
|
19
|
-
"gpt_schema": {"sentiment": "positive", "confidence": 0.91},
|
|
20
|
-
"claude_schema": {"label": "POSITIVE", "probability": 0.89},
|
|
21
|
-
"gemini_schema": {"polarity": 1, "score": 0.92},
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@app.register()
|
|
25
|
-
def extract_keywords(text: str) -> dict:
|
|
26
|
-
"""Extracts key phrases."""
|
|
27
|
-
return {
|
|
28
|
-
"gpt_schema": {"keywords": ["AI", "automation", "infrastructure"]},
|
|
29
|
-
"claude_schema": {"phrases": ["AI", "automation", "infra"]},
|
|
30
|
-
"gemini_schema": {"entities": ["AI", "automation", "infra"]},
|
|
31
|
-
}
|
|
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
|