Skip to main content
Use a post-hook to transform the output of a Team before it is returned to the user. This hook:
  1. Transforms team responses by updating TeamRunOutput.content
  2. Adds formatting, structure, and additional information
  3. Enhances the user experience through content modification

Code

output_transformation_post_hook.py

Usage

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run example

Save the code above as output_transformation_post_hook.py, then run: