ToolMeta
Metadata about a tool execution.
ToolMeta::__construct()
public function __construct(string $tool, int $took_ms, string $request_id, ?string $channel = null, ?string $principal = null):Parameters
| Name | Type | Description |
|---|---|---|
| $tool | string | |
| $took_ms | int | |
| $request_id | string | |
| $channel | ?string | |
| $principal | ?string |
ToolMeta::toArray()
public function toArray(): arraySerialize this metadata to a plain array for logging or transport.
ToolMeta::generateRequestId()
public static function generateRequestId(): stringGenerate a unique request ID.