class GetPrompt implements Method

Methods

__construct(string $name, array $arguments = [])

Create a prompt request.

string
method()

Get the prompt method name.

array
params()

Get the prompt name and arguments.

TResult
handle(Protocol $protocol)

Fetch and hydrate the prompt result.

Details

at line 21
__construct(string $name, array $arguments = [])

Create a prompt request.

Parameters

string $name
array $arguments

at line 30
string method()

Get the prompt method name.

Return Value

string

at line 40
array params()

Get the prompt name and arguments.

Return Value

array

at line 51
TResult handle(Protocol $protocol)

Fetch and hydrate the prompt result.

Parameters

Protocol $protocol

Return Value

TResult