Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| profiler | 2 years ago | |
| README.md | 2 years ago | |
| demo.py | 2 years ago | |
| setup.py | 2 years ago | |
aprofileaprofile is a command-line tool to profile chat messages loaded from files, json str input, and AutoGen Bench style console logs.
To install the package, clone the repository and install the dependencies.
# clone the correct repo/branch
cd samples/tools/profiler
pip install -e .
export OPENAI_API_KEY=<your key>
The tool currently provides two main commands: profile and visualize.
For example, to profile a chat log from AutoGenBench style console logs, run:
aprofile profile --agbconsole <path-to-file> --o profile.json
You can then visualize the profile using the visualize command:
aprofile visualize --json profile.json --port 8000
This will launch a simple Python HTTP server on port 8000. You can visit the website localhost:8000 in your browser to interactively visualize the data.
This is a mirror of AutoGen from GitHub. AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
Python SVG Jupyter Notebook C# TSX other