Skip to main content

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

aryan@kisho.app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kisho-0.3.8.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kisho-0.3.8-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file kisho-0.3.8.tar.gz.

File metadata

  • Download URL: kisho-0.3.8.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for kisho-0.3.8.tar.gz
Algorithm Hash digest
SHA256 44cb2a36b22a497619f90a1f172cf87fb34cbb8833144191d6e42d335ab853c5
MD5 4ff1521c91e38da7c5eb63ab5226bf1f
BLAKE2b-256 45b4e45e16d7123ae4c5316032789c7c094fe53f882d1e2fbab8cd39e809d6e7

See more details on using hashes here.

File details

Details for the file kisho-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: kisho-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for kisho-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e0fd01c3bd0b16afc5ebb1d22eeaddd9e13622d1d7bd6ac6e123cae4f3b1a038
MD5 8f12594c3da55dff78ab02ae47dd0fa3
BLAKE2b-256 3962d235df5a57d3c44c3f22cffa96b95c0e7b3b95b8109cfcaf11f7eb11fff6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page