mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 06:10:49 +08:00
deploy: 37fc581472
This commit is contained in:
@ -22,8 +22,8 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@550;600&display=swap"><link rel="stylesheet" href="/assets/css/styles.b2eb940a.css">
|
||||
<script src="/assets/js/runtime~main.73fa8a30.js" defer="defer"></script>
|
||||
<script src="/assets/js/main.a3a3fa39.js" defer="defer"></script>
|
||||
<script src="/assets/js/runtime~main.7c47ee98.js" defer="defer"></script>
|
||||
<script src="/assets/js/main.ec942a35.js" defer="defer"></script>
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NK5M4ZT8" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
@ -57,13 +57,11 @@ It selects the <strong>Calculator</strong> tool for simpler math and the <strong
|
||||
<li>The <strong>Python REPL tool</strong> component executes Python code in a REPL (Read-Evaluate-Print Loop) interpreter.</li>
|
||||
<li>The <strong>Calculator</strong> component performs basic arithmetic operations.</li>
|
||||
<li>The <strong>Chat Input</strong> component accepts user input to the chat.</li>
|
||||
<li>The <strong>Prompt</strong> component combines the user input with a user-defined prompt.</li>
|
||||
<li>The <strong>Chat Output</strong> component prints the flow's output to the chat.</li>
|
||||
<li>The <strong>OpenAI</strong> model component sends the user input and prompt to the OpenAI API and receives a response.</li>
|
||||
</ul>
|
||||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="run-the-math-agent-flow">Run the Math Agent flow<a href="#run-the-math-agent-flow" class="hash-link" aria-label="Direct link to Run the Math Agent flow" title="Direct link to Run the Math Agent flow"></a></h2>
|
||||
<ol>
|
||||
<li>Add your credentials to the Open AI component.</li>
|
||||
<li>Add your credentials to the <strong>Agent</strong> component.</li>
|
||||
<li>Click <strong>Playground</strong> to start a chat session.</li>
|
||||
<li>Enter a simple math problem, like <code>2 + 2</code>, and then make sure the bot responds with the correct answer.</li>
|
||||
<li>To confirm the REPL interpreter is working, prompt the <code>math</code> library directly with <code>math.sqrt(4)</code> and see if the bot responds with <code>4</code>.</li>
|
||||
|
||||
Reference in New Issue
Block a user