}> */ final class ThreadRunStepResponseRetrievalToolCall implements ResponseContract { /** * @use ArrayAccessible}> */ use ArrayAccessible; use Fakeable; /** * @param array $retrieval */ private function __construct( public string $id, public string $type, public array $retrieval, ) { } /** * Acts as static factory, and returns a new Response instance. * * @param array{id: string, type: 'retrieval', retrieval: array} $attributes */ public static function from(array $attributes): self { return new self( $attributes['id'], $attributes['type'], $attributes['retrieval'], ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'id' => $this->id, 'type' => $this->type, 'retrieval' => $this->retrieval, ]; } }