Get chat gpt messages
From UBot Studio
(Difference between revisions)
(Created page with "'''$get chat gpt messages''' is a function used to return the messages associated with a specified agent. This function can be used to fetch and review the messages associat...") |
|||
Line 1: | Line 1: | ||
− | '''$get chat | + | '''$get chat GPT messages''' returns the messages associated with the specified GPT agent. |
− | This function | + | This function allows you to retrieve the fullconversation history for a specified chat GPT agent. |
== Parameters == | == Parameters == | ||
− | '''Agent | + | '''Agent:''' This parameter allows you to specify the GPT agent whose messages you want to retrieve. The default is "ChatGPT". |
− | == | + | == Return Value == |
− | + | This function returns a string, which is the text of the messages associated with the specified GPT agent. | |
== Example == | == Example == | ||
<pre> | <pre> | ||
− | $ | + | $conversation = $get chat GPT messages("ChatGPT") |
</pre> | </pre> | ||
− | In this | + | In this script, the function retrieves the messages associated with the agent "ChatGPT". The returned conversation history is then stored in the variable named "conversation". |
Revision as of 16:15, 30 June 2023
$get chat GPT messages returns the messages associated with the specified GPT agent.
This function allows you to retrieve the fullconversation history for a specified chat GPT agent.
Parameters
Agent: This parameter allows you to specify the GPT agent whose messages you want to retrieve. The default is "ChatGPT".
Return Value
This function returns a string, which is the text of the messages associated with the specified GPT agent.
Example
$conversation = $get chat GPT messages("ChatGPT")
In this script, the function retrieves the messages associated with the agent "ChatGPT". The returned conversation history is then stored in the variable named "conversation".