ToolExecution implements JsonSerializable
Execution-related properties of a Tool.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $taskSupport : TaskSupport|null
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : ToolExecutionData|stdClass
Properties
$taskSupport read-only
public
TaskSupport|null
$taskSupport
= null
Methods
__construct()
public
__construct([TaskSupport|null $taskSupport = null ]) : mixed
Parameters
- $taskSupport : TaskSupport|null = null
-
whether the tool can be called as a task; absent means TaskSupport::Forbidden
fromArray()
public
static fromArray(ToolExecutionData $data) : self
Parameters
- $data : ToolExecutionData
Return values
selfjsonSerialize()
public
jsonSerialize() : ToolExecutionData|stdClass
Return values
ToolExecutionData|stdClass —an empty execution encodes as }, not []