class ListTools implements Method

Traits

Properties

protected string|null $cursor from  PaginatesList
protected int|null $limit from  PaginatesList

Methods

string
listType()

Get the list response key.

nextPage(string|null $cursor)

Create the request for the next page.

hydrate(array $payloads)

Hydrate supported tools by name.

string
method()

Get the list method name.

array
params()

Get the current page parameters.

handle(Protocol $protocol)

Fetch and hydrate the requested primitives.

array
fetch(Protocol $protocol)

Fetch pages up to the requested limit.

__construct(Client|null $client = null, string|null $cursor = null, int|null $limit = null)

Create a tool list request.

Details

at line 37
protected string listType()

Get the list response key.

Return Value

string

at line 45
protected ListTools nextPage(string|null $cursor)

Create the request for the next page.

Parameters

string|null $cursor

Return Value

ListTools

at line 56
protected Collection hydrate(array $payloads)

Hydrate supported tools by name.

Parameters

array $payloads

Return Value

Collection

in PaginatesList at line 40
string method()

Get the list method name.

Return Value

string

in PaginatesList at line 50
array params()

Get the current page parameters.

Return Value

array

in PaginatesList at line 60
Collection handle(Protocol $protocol)

Fetch and hydrate the requested primitives.

Parameters

Protocol $protocol

Return Value

Collection

in PaginatesList at line 70
protected array fetch(Protocol $protocol)

Fetch pages up to the requested limit.

Parameters

Protocol $protocol

Return Value

array

at line 25
__construct(Client|null $client = null, string|null $cursor = null, int|null $limit = null)

Create a tool list request.

Parameters

Client|null $client
string|null $cursor
int|null $limit