Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/course/agents/01-introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ This course is perfect for:
- Anyone who wants to understand and use AI agents in practical ways

Let's begin our journey into the fascinating world of AI agents!
<iframe
id="codeExecutionFrame"
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)"
width="100%"
height="600px"
frameborder="0"
allow="clipboard-read; clipboard-write"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The allow attribute includes clipboard-read and clipboard-write. While these permissions might be necessary, they also introduce potential security risks. Ensure that the code execution server is properly secured to prevent malicious code from accessing the user's clipboard.

scrolling="yes"
onload="resizeIframe(this)"
></iframe>
Comment on lines +54 to +63
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This iframe code block is duplicated in other files. Consider creating a reusable component or partial to avoid duplication and ensure consistency. This will make maintenance easier and reduce the risk of inconsistencies across the documentation.


<IframeWithAutoHeight />

<CardGroup cols={1}>
<Card title="Ready to Start?" icon="rocket">
Expand Down
13 changes: 13 additions & 0 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,19 @@ agents.start()
</Tab>
</Tabs>

## Playground

<iframe
id="codeExecutionFrame"
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)"
width="100%"
height="600px"
frameborder="0"
allow="clipboard-read; clipboard-write"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The allow attribute includes clipboard-read and clipboard-write. While these permissions might be necessary, they also introduce potential security risks. Ensure that the code execution server is properly secured to prevent malicious code from accessing the user's clipboard.

scrolling="yes"
onload="resizeIframe(this)"
></iframe>
Comment on lines +275 to +284
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This iframe code block is duplicated in other files. Consider creating a reusable component or partial to avoid duplication and ensure consistency. This will make maintenance easier and reduce the risk of inconsistencies across the documentation.


## AI Agents Flow

```mermaid
Expand Down
13 changes: 13 additions & 0 deletions docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,19 @@ agents.start()
</Tab>
</Tabs>

## Playground

<iframe
id="codeExecutionFrame"
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)"
width="100%"
height="600px"
frameborder="0"
allow="clipboard-read; clipboard-write"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The allow attribute includes clipboard-read and clipboard-write. While these permissions might be necessary, they also introduce potential security risks. Ensure that the code execution server is properly secured to prevent malicious code from accessing the user's clipboard.

scrolling="yes"
onload="resizeIframe(this)"
></iframe>
Comment on lines +317 to +326
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This iframe code block is duplicated in other files. Consider creating a reusable component or partial to avoid duplication and ensure consistency. This will make maintenance easier and reduce the risk of inconsistencies across the documentation.


## Key Features

<CardGroup cols={3}>
Expand Down
13 changes: 13 additions & 0 deletions docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@ agents.start()
- For other LLM providers, see [Models](/models)
</Note>

## Playground

<iframe
id="codeExecutionFrame"
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)"
width="100%"
height="600px"
frameborder="0"
allow="clipboard-read; clipboard-write"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The allow attribute includes clipboard-read and clipboard-write. While these permissions might be necessary, they also introduce potential security risks. Ensure that the code execution server is properly secured to prevent malicious code from accessing the user's clipboard.

scrolling="yes"
onload="resizeIframe(this)"
></iframe>
Comment on lines +243 to +252
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This iframe code block is duplicated in other files. Consider creating a reusable component or partial to avoid duplication and ensure consistency. This will make maintenance easier and reduce the risk of inconsistencies across the documentation.


# Advanced

## Providing Detailed Tasks to Agents (Optional)
Expand Down
Loading