InvokesTools
trait InvokesTools
Traits
Methods
float
elapsedMilliseconds(int $startedAt)
Get the milliseconds elapsed since the given monotonic nanosecond reading.
from
MeasuresDuration
string
executeTool(Tool $tool, array $arguments, string|null $toolCallId = null, RunContext|null $context = null)
Execute the given tool with the given arguments.
Details
in
MeasuresDuration at line 12
protected float
elapsedMilliseconds(int $startedAt)
Get the milliseconds elapsed since the given monotonic nanosecond reading.
at line 28
protected string
executeTool(Tool $tool, array $arguments, string|null $toolCallId = null, RunContext|null $context = null)
Execute the given tool with the given arguments.
at line 63
protected Tool|null
findTool(string $name, array $tools)
Find a tool by its name from the given tools array.