Mika Scraper / GalaxyRequestPayload
Interface: GalaxyRequestPayload
The GalaxyRequestPayload
interface defines the structure of the payload sent to the GalaxyAI API. This payload is used for communication with the GalaxyAI service to process requests effectively.
Properties
k
k:
string
The unique identifier associated with the request. This key may be required for authentication or to specify the request context.
module
module:
GalaxyModule
Specifies the module to be used for the request. This parameter allows the client to select different functional modules available within the GalaxyAI API.
text
text:
string
The content or query to be processed by the GalaxyAI service. This property holds the main information that the API will analyze or respond to.
to
to:
string
The target recipient or endpoint for the request. This can represent a user ID, chat session, or another relevant entity that the GalaxyAI service interacts with.
userId
userId:
string
The identifier for the user making the request. This property is crucial for associating the request with user sessions and managing response data accordingly.
Example
const requestPayload: GalaxyRequestPayload = {
k: "your_unique_key",
module: "desiredModule",
text: "What is the weather today?",
to: "recipient_id",
userId: "user_12345"
};