IProviderWithUserId
extends
IProvider
in
This interface allows providers to access the user that initiated the task being run.
Tags
Table of Contents
Methods
- getName() : string
- The localized name of this provider
- getTaskType() : T>
- Returns the task type class string of the task type, that this provider handles
- process() : string
- Processes a text
- setUserId() : void
Methods
getName()
The localized name of this provider
public
getName() : string
Tags
Return values
stringgetTaskType()
Returns the task type class string of the task type, that this provider handles
public
getTaskType() : T>
Tags
Return values
T>process()
Processes a text
public
process(string $prompt) : string
Parameters
- $prompt : string
-
The input text
Tags
Return values
string —the output text
setUserId()
public
setUserId(string|null $userId) : void
Parameters
- $userId : string|null
-
the current user's id