AnnotatedBaseField
in package
AbstractYes
Base class for annotated fields.
Table of Contents
Properties
- $guidelines : string|null
- $selected : bool
Methods
- __construct() : mixed
- createField() : AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListField
- toArray() : array<string, mixed>
Properties
$guidelines
public
string|null
$guidelines
Guidelines or instructions for processing this field.
$selected
public
bool
$selected
When true, use the RAG information for the final result. When false, use the Data Schema information.
Methods
__construct()
public
__construct(bool $selected, string|null $guidelines) : mixed
Parameters
- $selected : bool
- $guidelines : string|null
createField()
public
static createField(array<string, mixed> $rawResponse) : AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListField
Parameters
- $rawResponse : array<string, mixed>
-
Raw server response array.
Tags
Return values
AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListFieldtoArray()
public
abstract toArray() : array<string, mixed>
Return values
array<string, mixed> —Array representation for serialization.