Get chat gpt messages

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''$get chat GPT messages''' returns the messages associated with the specified GPT agent.
+
'''$get chat gpt messages''' is a function that retrieves the messages associated with a specified GPT agent. This function allows you to return the conversation history of a specified agent, which includes both the user and the agent messages.
 
+
This function allows you to retrieve the fullconversation history for a specified chat GPT agent.  
+
  
 
== Parameters ==
 
== Parameters ==
  
'''Agent:''' This parameter allows you to specify the GPT agent whose messages you want to retrieve. The default is "ChatGPT".
+
'''Agent:''' This refers to the name of the agent whose messages you want to retrieve. The default agent is ChatGPT.
  
 
== Return Value ==
 
== Return Value ==
  
This function returns a string, which is the text of the messages associated with the specified GPT agent.
+
A string containing the messages associated with the specified agent.  
  
== Example ==
+
== Usage ==
  
 
<pre>
 
<pre>
$conversation = $get chat GPT messages("ChatGPT")
+
$get chat gpt messages("ChatGPT")
 
</pre>
 
</pre>
  
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".
+
In this example, the function will return a string that includes all the messages associated with the agent named "ChatGPT".

Revision as of 16:18, 30 June 2023

$get chat gpt messages is a function that retrieves the messages associated with a specified GPT agent. This function allows you to return the conversation history of a specified agent, which includes both the user and the agent messages.

Parameters

Agent: This refers to the name of the agent whose messages you want to retrieve. The default agent is ChatGPT.

Return Value

A string containing the messages associated with the specified agent.

Usage

$get chat gpt messages("ChatGPT")

In this example, the function will return a string that includes all the messages associated with the agent named "ChatGPT".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox