Skip to content

hawku-com/middle_ai_py_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Middle AI Python SDK

This provides an SDK to trace your Python application calls LLMs

Install

$ pip install git+https://github.com/hawku-com/middle_ai_py_sdk.git

How to use

from middle_ai_sdk.tracer import Tracer

tracer = Tracer('app_reference')

def foo() -> None:
    model_params = { "abc": { "def": '1', "ghi": '2'}, "jkl": '3' }
    span = tracer.start_trace('trace_name', 'llm_model_name', model_params, 'prompt', 'user_id', 'thread_id')

    ...

    tracer.end_trace(span, llm_output)

Releases

No releases published

Packages

No packages published

Languages