Docs
DevApp

DevApp

DevApp connects your codebase to the dashboard.

Usage

Running prompt init will automatically create a promptmodel_dev.py in your project. This file is used to register your functions and samples to the development dashboard.

prompt init
promptmodel_dev.py
"""This single file is needed to build the DevApp development dashboard."""
 
from promptmodel import DevApp
 
# Example imports
# from <dirname> import < objectname>
 
app = DevApp()
 
# Example usage
# This is needed to integrate your codebase with the prompt engineering dashboard
# app.include_client(< objectname>)

Methods

register_function

ParameterTypeRequiredDescription
schemaOptional[Dict[str, Any], FunctionSchema]YesSchema of the function to be passed on to function calls.
functionCallableYesFunction to be registered and used for test runs (function calls) from the development dashboard.

register_sample

ParameterTypeRequiredDescription
namestrYesName of the sample to be displayed in the dashboard.
contentDict[str, Any]YesDictonary of an input sample.

include_client

ParameterTypeRequiredDescription
clientDevClientYesA DevClient instance to include in the dashboard.