ListTools
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.
hydrate(array $payloads)
Hydrate supported tools by name.
from
PaginatesList
__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.
at line 45
protected ListTools
nextPage(string|null $cursor)
Create the request for the next page.
at line 56
protected Collection
hydrate(array $payloads)
Hydrate supported tools by name.
in
PaginatesList at line 40
string
method()
Get the list method name.
in
PaginatesList at line 50
array
params()
Get the current page parameters.
in
PaginatesList at line 60
Collection
handle(Protocol $protocol)
Fetch and hydrate the requested primitives.
in
PaginatesList at line 70
protected array
fetch(Protocol $protocol)
Fetch pages up to the requested limit.
at line 25
__construct(Client|null $client = null, string|null $cursor = null, int|null $limit = null)
Create a tool list request.