PromptReference implements JsonSerializable
Identifies a prompt.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- jsonSerialize() : array{type: string, name: string}
Properties
$name read-only
public
string
$name
$type
public
string
$type
= 'ref/prompt'
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
-
The name of the prompt or prompt template
jsonSerialize()
public
jsonSerialize() : array{type: string, name: string}