A tracing library for OpenAI API calls and custom functions
Project description
Kisho SDK (V2)
This is an SDK for tracing and analyzing OpenAI API calls and custom functions.
Features
- Trace OpenAI API calls
- Trace custom functions
- Generate call graphs
- Calculate API usage costs
- Visualize execution flow
Installation
pip install kisho
Usage
Tracing OpenAI API Calls
python from kisho import trace_oai client = trace_oai("your-api-key") response = client.chat.completions.create( model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello, world!"}], agent_id="my_agent" )
Tracing Custom Functions
python from kisho import traced_function @traced_function def my_function(arg1, arg2):
Your function logic here
pass
Starting the Tracing Server
python from kisho import start_server if name == "main": start_server()
API Reference
{Add detailed API reference here}
Contributing
{Add contributing guidelines here}
License
This project is licensed under the MIT License - see the LICENSE file for details.
{You can reference the LICENSE file content using:} kisho/LICENSE startLine: 1 endLine: 22
Contact
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 kisho-0.3.2.tar.gz.
File metadata
- Download URL: kisho-0.3.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4f564359e1d19deee5242332664adb7b7308cfdaef94a465c1e8edd3cdafb19
|
|
| MD5 |
141609065bc2b630a795cabeea13fe86
|
|
| BLAKE2b-256 |
5af0139c7926d9e3a024daf6d5f030b3930503582b18777e408daf8dbfb6e94e
|
File details
Details for the file kisho-0.3.2-py3-none-any.whl.
File metadata
- Download URL: kisho-0.3.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae206dd4012b6879fb60395280419561d3eb354e4b5f3bf5065d5e0d2110ca4c
|
|
| MD5 |
92aec1acbbca102060127695e5c6dc3a
|
|
| BLAKE2b-256 |
507f968100bfb57d92cc4ed13bc7887553b0e4e2bca6ad0223d0590af59a6579
|