Skip to content

Commit bd5c73f

Browse files
committed
Add playground documentation to navigation
- Updated `mint.json` to include the "playground" page in the documentation navigation - Positioned under the "Other Features" group for easy access
1 parent 6738433 commit bd5c73f

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

docs/mint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
"group": "Other Features",
305305
"pages": [
306306
"train",
307+
"playground",
307308
"framework/crewai",
308309
"framework/autogen",
309310
"framework/praisonaiagents"

docs/playground.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Praison AI Agents Playground"
3+
sidebarTitle: "Playground"
4+
description: "Interactive environment to test and run your AI Agents"
5+
icon: "code"
6+
---
7+
8+
<iframe
9+
id="codeExecutionFrame"
10+
src="https://code-execution-server-praisonai.replit.app/?code=import%20openai%0A%0Aclient%20%3D%20openai.OpenAI()%0Aresult%20%3D%20client.chat.completions.create(%0A%20%20%20%20model%3D%22gpt-3.5-turbo%22%2C%0A%20%20%20%20messages%3D%5B%0A%20%20%20%20%20%20%20%20%7B%22role%22%3A%20%22user%22%2C%20%22content%22%3A%20%22Hello%20World%22%7D%0A%20%20%20%20%5D%0A)%0A%0Aprint(result.choices%5B0%5D.message.content)"
11+
width="100%"
12+
height="800px"
13+
frameborder="0"
14+
allow="clipboard-read; clipboard-write"
15+
scrolling="yes"
16+
onload="resizeIframe(this)"
17+
></iframe>
18+
19+
## How to Use the Playground
20+
21+
1. The code editor is pre-loaded with a simple example using Praison AI Agents
22+
2. Modify the code as needed for your experiments
23+
3. Click "Run" to execute the code and see the results
24+
4. Use the playground to test concepts from the course or your own ideas
25+
26+
<CardGroup cols={2}>
27+
<Card title="API Documentation" icon="book" href="https://docs.praison.ai">
28+
Reference the Praison AI Agents documentation for more examples
29+
</Card>
30+
<Card title="Back to Course" icon="arrow-left" href="/course/agents/01-introduction">
31+
Return to the AI Agents course
32+
</Card>
33+
</CardGroup>

0 commit comments

Comments
 (0)