liveBook · Manning

Playground

As explained in AI Agents in Action

The Playground is the browser-based interface used in this book to create, configure, and manage assistants.

The Playground is a local, browser-based interface for creating, configuring, and managing assistants that you use through the API. Run the Python application, set an OpenAI API key, and open its displayed URL in a browser. section 6.2.1

Listing 6.2 Installing the GPT Assistants Playground
# change to a working folder and create a new Python virtual environment
git clone 
 https://github.com/cxbxmxcx/GPTAssistantsPlayground     #1
cd GPTAssistantsPlayground      #2
pip install -r requirements.txt      #3

See the commands for cloning the project and installing its requirements. section 6.2.1

Listing 6.3 Running the GPT Assistants Playground
export OPENAI_API_KEY="your-api-key"      #1
python main.py     #2

See the commands for setting the API key and starting the application. section 6.2.1

The interface supports practical assistant workflows:

  • Create assistants and configure their instructions and options. section 6.2.1
  • Add custom actions and run Python locally in an isolated virtual environment. section 6.2.1
  • Use a Manager Assistant to install available assistants and save assistant definitions as JSON. section 6.3.1

Install an assistant

Select the Manager Assistant and ask it to install a named assistant, such as the Python Coding Assistant. The Playground can also save assistant definitions to a JSON file. section 6.3.1

How AI Agents in Action covers it

How deep it goes
Details local installation and API-key setup, then walks through creating and managing assistants.
Examples
Uses a math-learning interface and demonstrates installing a Manager Assistant and a Python Coding Assistant.
What it assumes
Requires an OpenAI API key and a local Python setup, and provides terminal commands for installing and launching the application.
What you can do after
Operate the local Playground to create assistants, configure actions, install assistants, and save definitions as JSON.
How it connects
Connects assistants with the OpenAI API, custom actions, and the Code Interpreter, and contrasts assistants with GPTs.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action. The section links point to the parts of the book it draws on.