Chat gpt response
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
− | '''$generate response''' generates a response from the specified GPT Agent | + | '''$generate gpt response''' is a function that generates a response from the specified GPT Agent with the given prompt. |
− | + | The function uses the specified agent to generate a text response for the given prompt. | |
== Parameters == | == Parameters == | ||
− | '''Input Prompt:''' The prompt you | + | '''Input Prompt:''' The prompt text that you want the agent to respond to. |
− | '''Agent Name:''' This | + | '''Agent Name:''' This refers to the name of the agent that will generate the response. The default agent is ChatGPT. |
== Return Value == | == Return Value == | ||
− | + | A string containing the agent's response to the input prompt. | |
− | == | + | == Usage == |
<pre> | <pre> | ||
− | + | $generate gpt response("Tell me a joke.", "ChatGPT") | |
</pre> | </pre> | ||
− | + | In this example, the ChatGPT agent will generate a response to the prompt "Tell me a joke." The function will then return this response as a string. |
Revision as of 16:17, 30 June 2023
$generate gpt response is a function that generates a response from the specified GPT Agent with the given prompt.
The function uses the specified agent to generate a text response for the given prompt.
Parameters
Input Prompt: The prompt text that you want the agent to respond to.
Agent Name: This refers to the name of the agent that will generate the response. The default agent is ChatGPT.
Return Value
A string containing the agent's response to the input prompt.
Usage
$generate gpt response("Tell me a joke.", "ChatGPT")
In this example, the ChatGPT agent will generate a response to the prompt "Tell me a joke." The function will then return this response as a string.