File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
class PromptChain implements PromptGetterInterface, CollectionInterface
18
18
{
19
- /** @var IdentifierInterface [] */
19
+ /** @var MetadataInterface [] */
20
20
private readonly array $ items ;
21
21
22
22
/**
23
- * @param IdentifierInterface [] $items
23
+ * @param MetadataInterface [] $items
24
24
*/
25
25
public function __construct (array $ items )
26
26
{
27
- /** @var IdentifierInterface [] $values */
27
+ /** @var MetadataInterface [] $values */
28
28
$ values = array_values (array_filter ($ items , fn ($ item ) => $ item instanceof MetadataInterface));
29
29
$ keys = array_map (fn ($ item ) => $ item ->getName (), $ values );
30
30
$ this ->items = array_combine ($ keys , $ values );
Original file line number Diff line number Diff line change 16
16
*/
17
17
class ResourceChain implements CollectionInterface, ResourceReaderInterface
18
18
{
19
- /** @var IdentifierInterface [] */
19
+ /** @var MetadataInterface [] */
20
20
private readonly array $ items ;
21
21
22
22
/**
23
- * @param IdentifierInterface [] $items
23
+ * @param MetadataInterface [] $items
24
24
*/
25
25
public function __construct (array $ items )
26
26
{
27
- /** @var IdentifierInterface [] $values */
27
+ /** @var MetadataInterface [] $values */
28
28
$ values = array_values (array_filter ($ items , fn ($ item ) => $ item instanceof MetadataInterface));
29
29
$ keys = array_map (fn ($ item ) => $ item ->getUri (), $ values );
30
30
$ this ->items = array_combine ($ keys , $ values );
Original file line number Diff line number Diff line change 16
16
*/
17
17
class ToolChain implements ToolExecutorInterface, CollectionInterface
18
18
{
19
- /** @var IdentifierInterface [] */
19
+ /** @var MetadataInterface [] */
20
20
private readonly array $ items ;
21
21
22
22
/**
23
- * @param IdentifierInterface [] $items
23
+ * @param MetadataInterface [] $items
24
24
*/
25
25
public function __construct (array $ items )
26
26
{
27
- /** @var IdentifierInterface [] $values */
27
+ /** @var MetadataInterface [] $values */
28
28
$ values = array_values (array_filter ($ items , fn ($ item ) => $ item instanceof MetadataInterface));
29
29
$ keys = array_map (fn ($ item ) => $ item ->getName (), $ values );
30
30
$ this ->items = array_combine ($ keys , $ values );
You can’t perform that action at this time.
0 commit comments