CallTool
class CallTool implements Method, MirrorsParameters
Methods
__construct(string $name, array $arguments = [], MirroredParameters|null $mirroredParameters = null)
Create a tool call request.
array
requestHeaders()
Get the headers mirroring tool arguments.
string
method()
Get the tool call method name.
array
params()
Get the tool name and arguments.
Details
at line 23
__construct(string $name, array $arguments = [], MirroredParameters|null $mirroredParameters = null)
Create a tool call request.
at line 35
array
requestHeaders()
Get the headers mirroring tool arguments.
at line 43
string
method()
Get the tool call method name.
at line 53
array
params()
Get the tool name and arguments.
at line 64
TResult
handle(Protocol $protocol)
Call the tool and hydrate its result.