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 | |
| requirements.txt | 2 years ago | |
| setup.py | 2 years ago | |
aprofileThis package introduces a new functionality to profile chat messages. It includes a Profiler class that identifies the state of a chat message based on predefined states.
It also introduces a command called aprofile which can be used 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
# git clone git@github.com:microsoft/autogen.git
# git checkout ct_webarena
cd samples/tools/profiler
pip install -e .
A demonstration of how to use the Profiler class to profile a list of chat messages is provided in demo.py.
The aprofile CLI can accept various input formats.
# for printing help
aprofile --help
# input: json string
aprofile --json [{"source": "user", "content": "plot a chart"}]
# input: path to a json
aprofile --file chat_history.json
# input: AGBench console log
aprofile --agbconsole <path to AGBench output>/console_log.txt
The command utility will print sources observed in the chat and their high-level states.
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