Chat gpt response

From UBot Studio
Revision as of 16:10, 30 June 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$generate response is a function used to generate a response from the specified GPT Agent with the given prompt.

This function allows you to generate AI responses to simulate interactions with specified agents.

Parameters

Input Prompt: The prompt that the user gives to the agent.

Agent Name (Optional): The name of the agent. This parameter is optional and by default, the agent name is set to ChatGPT.

Returns

A string, representing the generated response from the specified agent for the given prompt.

Example

$response = $generate response("What's the weather like today?", "WeatherBot")

In this example, we are asking the 'WeatherBot' about the weather condition. The generated response is stored in the variable '$response'.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox