-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
updates #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updates #415
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
| scrolling="yes" | ||
| onload="resizeIframe(this)" | ||
| ></iframe> | ||
|
Comment on lines
+54
to
+63
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| <IframeWithAutoHeight /> | ||
|
|
||
| <CardGroup cols={1}> | ||
| <Card title="Ready to Start?" icon="rocket"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| scrolling="yes" | ||
| onload="resizeIframe(this)" | ||
| ></iframe> | ||
|
Comment on lines
+275
to
+284
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| ## AI Agents Flow | ||
|
|
||
| ```mermaid | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| scrolling="yes" | ||
| onload="resizeIframe(this)" | ||
| ></iframe> | ||
|
Comment on lines
+317
to
+326
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| ## Key Features | ||
|
|
||
| <CardGroup cols={3}> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| scrolling="yes" | ||
| onload="resizeIframe(this)" | ||
| ></iframe> | ||
|
Comment on lines
+243
to
+252
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| # Advanced | ||
|
|
||
| ## Providing Detailed Tasks to Agents (Optional) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
allowattribute includesclipboard-readandclipboard-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.