Get chat gpt messages
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
− | '''$get chat | + | '''$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 | + | |
== Parameters == | == Parameters == | ||
− | '''Agent:''' This | + | '''Agent:''' This refers to the name of the agent whose messages you want to retrieve. The default agent is ChatGPT. |
== Return Value == | == Return Value == | ||
− | + | A string containing the messages associated with the specified agent. | |
− | == | + | == Usage == |
<pre> | <pre> | ||
− | + | $get chat gpt messages("ChatGPT") | |
</pre> | </pre> | ||
− | In this | + | 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".