Nextcloud PHP API (master)

IProviderWithId extends IProvider

This is the interface that is implemented by apps that implement a text processing provider

Tags
since
28.0.0
extends

IProvider<T>

template

T of ITaskType

Table of Contents

Methods

getId()  : string
The id of this provider
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

Methods

getId()

The id of this provider

public getId() : string
Tags
since
28.0.0
Return values
string

getName()

The localized name of this provider

public getName() : string
Tags
since
27.1.0
Return values
string

getTaskType()

Returns the task type class string of the task type, that this provider handles

public getTaskType() : T>
Tags
since
27.1.0
Return values
T>

process()

Processes a text

public process(string $prompt) : string
Parameters
$prompt : string

The input text

Tags
since
27.1.0
throws
RuntimeException

If the text could not be processed

Return values
string

the output text


        
On this page

Search results