Documentation

AnnotatedListField extends AnnotatedBaseField
in package

A ListField with additional configuration for annotation.

Table of Contents

Properties

$guidelines  : string|null
$items  : array<string|int, AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListField>
$selected  : bool
$objectItemsCache  : array<string|int, AnnotatedObjectField>|null
$simpleItemsCache  : array<string|int, AnnotatedSimpleField>|null

Methods

__construct()  : mixed
createField()  : AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListField
fromArray()  : self
getObjectItems()  : array<string|int, AnnotatedObjectField>
List of object fields.
getSimpleItems()  : array<string|int, AnnotatedSimpleField>
List of simple fields.
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

fromArray()

public static fromArray(array<string, mixed> $rawResponse) : self
Parameters
$rawResponse : array<string, mixed>

Raw server response array.

Return values
self

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>

Array representation for serialization.

On this page

Search results